mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-16 01:12:29 +00:00
use brace-initialization at context construction
This commit is contained in:
@@ -211,7 +211,7 @@ private:
|
||||
template< typename StackAlloc, typename Fn, typename Tpl >
|
||||
boost::context::execution_context create_( boost::context::preallocated palloc,
|
||||
StackAlloc salloc, Fn && fn, Tpl && tpl) {
|
||||
return boost::context::execution_context{
|
||||
return {
|
||||
std::allocator_arg, palloc, salloc,
|
||||
std::bind(
|
||||
[this]( typename std::decay< Fn >::type & fn_, typename std::decay< Tpl >::type & tpl_,
|
||||
|
||||
Reference in New Issue
Block a user