This is the mail archive of the gcc-help@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]

How to determine when a C++11 move is synthesized?


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.


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