Can somebody explain me why in VC++ 12 string &s = string("this"); works but not int &d = int(10); what operators are called while initializing a non const reference.
Thanks.
False premise: string &s = string("this");
is not valid C++. Lvalue references cannot bind to rvalues.