summaryrefslogtreecommitdiff
path: root/boost/fiber/fiber.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fiber/fiber.hpp')
-rw-r--r--boost/fiber/fiber.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/boost/fiber/fiber.hpp b/boost/fiber/fiber.hpp
index eb10487c66..c2d5916305 100644
--- a/boost/fiber/fiber.hpp
+++ b/boost/fiber/fiber.hpp
@@ -87,12 +87,12 @@ public:
typename ... Arg
>
#if BOOST_COMP_GNUC < 50000000
- fiber( std::allocator_arg_t, StackAllocator salloc, Fn && fn, Arg && ... arg) :
+ fiber( std::allocator_arg_t, StackAllocator && salloc, Fn && fn, Arg && ... arg) :
#else
- fiber( std::allocator_arg_t, StackAllocator salloc, Fn && fn, Arg ... arg) :
+ fiber( std::allocator_arg_t, StackAllocator && salloc, Fn && fn, Arg ... arg) :
#endif
fiber{ launch::post,
- std::allocator_arg, salloc,
+ std::allocator_arg, std::forward< StackAllocator >( salloc),
std::forward< Fn >( fn), std::forward< Arg >( arg) ... } {
}
@@ -101,11 +101,11 @@ public:
typename ... Arg
>
#if BOOST_COMP_GNUC < 50000000
- fiber( launch policy, std::allocator_arg_t, StackAllocator salloc, Fn && fn, Arg && ... arg) :
+ fiber( launch policy, std::allocator_arg_t, StackAllocator && salloc, Fn && fn, Arg && ... arg) :
#else
- fiber( launch policy, std::allocator_arg_t, StackAllocator salloc, Fn && fn, Arg ... arg) :
+ fiber( launch policy, std::allocator_arg_t, StackAllocator && salloc, Fn && fn, Arg ... arg) :
#endif
- impl_{ make_worker_context( policy, salloc, std::forward< Fn >( fn), std::forward< Arg >( arg) ... ) } {
+ impl_{ make_worker_context( policy, std::forward< StackAllocator >( salloc), std::forward< Fn >( fn), std::forward< Arg >( arg) ... ) } {
start_();
}
@@ -120,7 +120,7 @@ public:
fiber( fiber && other) noexcept :
impl_{} {
- impl_.swap( other.impl_);
+ swap( other);
}
fiber & operator=( fiber && other) noexcept {