j
k
j a
j l
Howard Hinnant wrote:
Reasoning: foo(A()); expands to: foo(A(A()));
Reasoning:
foo(A());
expands to:
foo(A(A()));
No, it expands to typedef A const CA; foo(CA(A())); The difference is that a const_cast<A&> inside foo is now undefined behavior (whereas a direct binding would've made it legal.)
Back to the thread
Back to the list