[Bug libstdc++/100612] std::jthread can't be initialized with a pointer to a member function taking a std::stop_token

jonathan.oconnor at protonmail dot com gcc-bugzilla@gcc.gnu.org
Mon May 17 13:55:55 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100612

--- Comment #9 from Jonathan O'Connor <jonathan.oconnor at protonmail dot com> ---
I'd already figured out the workaround using a static member function calling
the non-static member function. But the lambda version is nicer!


More information about the Gcc-bugs mailing list