This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to determine when a C++11 move is synthesized?
- From: Jeffrey Walton <noloader at gmail dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 6 Jan 2016 16:37:00 -0500
- Subject: How to determine when a C++11 move is synthesized?
- Authentication-results: sourceware.org; auth=none
- Reply-to: noloader at gmail dot com
We have a library that's C++03, and its moving towards full support
for C++11. We are supplementing classes with:
class Foo
{
public:
Foo();
Foo(const Foo&);
Foo& operator=(const Foo&);
#if defined(CXX11_AVAILABLE)
Foo(const Foo&&);
#endif
};
We have a lot of classes (1500 or so), and its going to take some time
to evaluate all of them. As a starting point, we would like to
identify where the compiler is synthesizing a move and then provide it
(especially for some fundamental/critical base classes).
How can I determine when a C++11 move is synthesized?
Thanks in advance.