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++/57986] call to local "bind" template function called std::bind without "using" any namespace.


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to yangzhe1990 from comment #7)
> Thanks. Now only one question left. Why removing <algorithm> could disable
> the ADL?

<algorithm> is probably including <functional>

> BTW, in c++03, to avoid the const_cast, is writing a shared_ptr the right
> choice?

Make the type non-copyable, and if you need to pass it around then use
shared_ptr<thread>


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