Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Special kind of packaged_task<>

7 views
Skip to first unread message

Bonita Montero

unread,
Dec 17, 2020, 9:36:00 AM12/17/20
to
The class packaged_task<> doesn't has a copy-constructor, but it can be
moved. But I need a copyable packaged_task which needs only to work with
the object returned by bind(). The bind()-objects are copyable so this
should be possible. How do I write such kind of packaged_task<> on my
own ?

Bonita Montero

unread,
Dec 17, 2020, 9:54:44 AM12/17/20
to
I've just were noticed that there's std::function<>, which does what
I need. But it would be nice to know how such a class is built.
0 new messages