This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57986] call to local "bind" template function called std::bind without "using" any namespace.
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 25 Jul 2013 16:01:25 +0000
- Subject: [Bug c++/57986] call to local "bind" template function called std::bind without "using" any namespace.
- Auto-submitted: auto-generated
- References: <bug-57986-4 at http dot gcc dot gnu dot org/bugzilla/>
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>