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>