2
0
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:
Oliver Kowalke
2015-12-13 10:51:37 +01:00
parent f9c5075e10
commit aac6b190f3

View File

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