[Bug libstdc++/59768] [DR 2219] std::thread constructor not handling reference_wrapper correctly

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 11 19:08:00 GMT 2014


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |SUSPENDED
            Summary|[4.8 Regression]            |[DR 2219] std::thread
                   |std::thread constructor not |constructor not handling
                   |handling reference_wrapper  |reference_wrapper correctly
                   |correctly                   |

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Yes, I introduced __bind_simple specifically to provide the functionality
needed by std::thread (and other components) because it's not the same as
std::bind, which we were using previously.

I've actually reported a defect against the standard saying this *should* work
(but currently it's not allowed to), see
http://cplusplus.github.io/LWG/lwg-active.html#2219



More information about the Gcc-bugs mailing list