[Bug c++/62227] Templated move not elided
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Aug 24 23:20:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62227
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
C++11 says "When certain criteria are met, an implementation is allowed to omit
the copy/move construction of a class object, even if the copy/move
constructor..." which only applies to copy constructors or move constructors.
But the current draft says "even if the constructor selected for the copy/move
operation"
So it does seem that elision is now allowed when the relevant constructor is a
template.
More information about the Gcc-bugs
mailing list