This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61892] RVO not occurs with constructor with universal reference arguments
- From: "rs2740 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Jul 2014 23:00:52 +0000
- Subject: [Bug c++/61892] RVO not occurs with constructor with universal reference arguments
- Auto-submitted: auto-generated
- References: <bug-61892-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61892
TC <rs2740 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rs2740 at gmail dot com
--- Comment #4 from TC <rs2740 at gmail dot com> ---
There's a difference between constructors of template classes and constructors
that are themselves templates. Template classes can have copy and move
constructors (they'd better or std::vector would be useless), but constructors
that are themselves templates are neither copy constructors nor move
constructors, whether or not they belong to a template class or a non-template
class.