This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57064] [clarification requested] Which overload with ref-qualifier should be called?
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Apr 2013 08:12:36 +0000
- Subject: [Bug c++/57064] [clarification requested] Which overload with ref-qualifier should be called?
- Auto-submitted: auto-generated
- References: <bug-57064-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57064
--- Comment #15 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-04-26 08:12:36 UTC ---
That will also work if you return an rvalue, not an rvalue reference, and will
be safe against accidental misuse.