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++/61892] RVO not occurs with constructor with universal reference arguments


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.


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