#include <iostream>
using namespace std;
template <typename T>
const T* make_const(T *ptr) {
return ptr;
}
struct MyQuestion
{
void fun()
{ cout<<"a"; }
void fun()const
{ cout<<"b"; }
void call()
{
make_const(this)->fun(); // calls fun() const
fun(); // calls fun()
}
};
int main() {
MyQuestion q;
q.call();
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdGVtcGxhdGUgPHR5cGVuYW1lIFQ+CmNvbnN0IFQqIG1ha2VfY29uc3QoVCAqcHRyKSB7CglyZXR1cm4gcHRyOwp9CgpzdHJ1Y3QgTXlRdWVzdGlvbgp7Cgl2b2lkIGZ1bigpCgl7IGNvdXQ8PCJhIjsgfQoJCgl2b2lkIGZ1bigpY29uc3QKCXsgY291dDw8ImIiOyB9CgoJdm9pZCBjYWxsKCkKCXsKCSAgICBtYWtlX2NvbnN0KHRoaXMpLT5mdW4oKTsgCS8vIGNhbGxzIGZ1bigpIGNvbnN0CgkJCgkJZnVuKCk7IAkJCQkJCS8vIGNhbGxzIGZ1bigpCgl9Cn07CgppbnQgbWFpbigpIHsKCU15UXVlc3Rpb24gcTsKCXEuY2FsbCgpOwp9