From aac6b190f3eccf0626aa3eddd73e54cc76ed9067 Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Sun, 13 Dec 2015 10:51:37 +0100 Subject: [PATCH] use brace-initialization at context construction --- include/boost/fiber/context.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/fiber/context.hpp b/include/boost/fiber/context.hpp index c58a7587..d10c0dfa 100644 --- a/include/boost/fiber/context.hpp +++ b/include/boost/fiber/context.hpp @@ -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_,