[Bug c++/57986] call to local "bind" template function called std::bind without "using" any namespace.

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 25 14:51:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57986

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
        thread(const thread &X) {
            swap(const_cast<struct thread &>(X));
        }

This is insane, don't do that.



More information about the Gcc-bugs mailing list