2
0
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:
Oliver Kowalke
2015-12-17 20:07:42 +01:00
parent eddd1e7309
commit fe9a8cc7e1

View File

@@ -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) ),