mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-20 02:32:19 +00:00
Fix allocator-aware fiber::async() overload allocator forwarding.
The fiber::async() overload which is aware of allocator doesn't use the allocator to contruct its internal fiber object. Signed-off-by: Oliver Kowalke <oliver.kowalke@gmx.de>
This commit is contained in:
@@ -80,7 +80,8 @@ async( Policy policy, std::allocator_arg_t, StackAllocator salloc, Fn && fn, Arg
|
||||
packaged_task< result_t( typename std::decay< Args >::type ... ) > pt{
|
||||
std::allocator_arg, salloc, std::forward< Fn >( fn) };
|
||||
future< result_t > f{ pt.get_future() };
|
||||
fiber{ policy, std::move( pt), std::forward< Args >( args) ... }.detach();
|
||||
fiber{ policy, std::allocator_arg, salloc,
|
||||
std::move( pt), std::forward< Args >( args) ... }.detach();
|
||||
return f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user