mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-19 14:22:23 +00:00
task_object ctor accept lvalue
This commit is contained in:
@@ -35,6 +35,12 @@ public:
|
||||
task_object
|
||||
> allocator_t;
|
||||
|
||||
task_object( allocator_t const& alloc, Fn const& fn) :
|
||||
base_t(),
|
||||
fn_( fn),
|
||||
alloc_( alloc) {
|
||||
}
|
||||
|
||||
task_object( allocator_t const& alloc, Fn && fn) :
|
||||
base_t(),
|
||||
fn_( std::move( fn) ),
|
||||
@@ -89,6 +95,12 @@ public:
|
||||
task_object< Fn, Allocator, void, Args ... >
|
||||
>::other allocator_t;
|
||||
|
||||
task_object( allocator_t const& alloc, Fn const& fn) :
|
||||
base_t(),
|
||||
fn_( fn),
|
||||
alloc_( alloc) {
|
||||
}
|
||||
|
||||
task_object( allocator_t const& alloc, Fn && fn) :
|
||||
base_t(),
|
||||
fn_( std::move( fn) ),
|
||||
|
||||
Reference in New Issue
Block a user