Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Arcoth schrieb:
@Nathan: helper sollte wohl static sein.
helper
static
Ups, ja sollte es.
Lässt sich noch ein wenig vereinfachen:
class task : std::function<void()> { public: using std::function<void()>::function; void do_task() { create_task( [](task* p){ (*p)(); }, this ); } };