void f(int x) { }
int f(const int & x) { return x; }
int main()
{
// ambiguous call
f(42);
// even when we call it using a const ref, it's ambiguous, so no hack possible...
int arg = 42;
const int &argR = arg;
f(argR);
}
CnZvaWQgZihpbnQgeCkgeyB9CmludCBmKGNvbnN0IGludCAmIHgpIHsgcmV0dXJuIHg7IH0KCmludCBtYWluKCkKewogICAgLy8gYW1iaWd1b3VzIGNhbGwKICAgIGYoNDIpOwogICAgCiAgICAvLyBldmVuIHdoZW4gd2UgY2FsbCBpdCB1c2luZyBhIGNvbnN0IHJlZiwgaXQncyBhbWJpZ3VvdXMsIHNvIG5vIGhhY2sgcG9zc2libGUuLi4KICAgIGludCBhcmcgPSA0MjsKICAgIGNvbnN0IGludCAmYXJnUiA9IGFyZzsKICAgIGYoYXJnUik7Cn0=