[cfe-dev] Strange phenomenon with conversion operator and call of overloaded method

Jonathan Sauer jonathan.sauer at gmx.de
Wed Jun 1 10:30:36 PDT 2011


I just tried the code using GCC 4.5.1 on Ideone (<http://ideone.com/9UbQv>),
and it compiled fine -- but for some reason GCC chose bar(Foo&&) instead of
bar(const Foo&) ...

Strange.


Jonathan




More information about the cfe-dev mailing list