This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50929] [C++0x] Wrong function selected for overload with template and rvalue reference


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50929

--- Comment #2 from Jarryd Beck <jarrydb at cse dot unsw.edu.au> 2011-10-31 07:42:54 UTC ---
That's a shame, and rather annoying. I read pages and pages of the standard to
try to understand this one. Do you know where this is explained?

I added a non-const constructor and also tried it with a const object, they
worked as you said.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]