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

2021-05-17 Thread jonathan.oconnor at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100612 --- Comment #9 from Jonathan O'Connor --- I'd already figured out the workaround using a static member function calling the non-static member function. But the lambda version is nicer!

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

2021-05-16 Thread jonathan.oconnor at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100612 --- Comment #7 from Jonathan O'Connor --- libstdc++. Woops, apologies! I feel somewhat vindicated by your non __STRICT_ANSI__ change! I'll now go away and write the proposal. Thanks for the encouragement.

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

2021-05-15 Thread jonathan.oconnor at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100612 --- Comment #5 from Jonathan O'Connor --- I was afraid you were going to say it's not a bug :-) That's why I reached out to Nico, who was on the committee, and was one of the people who proposed jthread. My view, as a user, is that jthread sho

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

2021-05-15 Thread jonathan.oconnor at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100612 --- Comment #1 from Jonathan O'Connor --- The std::jthread constructor does not support taking a pointer to a member function that has, as a first argument, a std::stop_token. In C++20, the new jthread class can accept a std::stop_token to aid

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

2021-05-15 Thread jonathan.oconnor at protonmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100612 Bug ID: 100612 Summary: std::jthread can't be initialized with a pointer to a member function taking a std::stop_token Product: gcc Version: 10.2.0 Status: UNCONFIRMED