From ef7daa95342e1b34163f32d59fa0a20410cb404d Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Mon, 21 Sep 2015 20:05:04 +0200 Subject: [PATCH] MSVC-fix for main_context/dispatcher_cotnext/worker_context --- include/boost/fiber/context.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/fiber/context.hpp b/include/boost/fiber/context.hpp index 053f5544..96637d71 100644 --- a/include/boost/fiber/context.hpp +++ b/include/boost/fiber/context.hpp @@ -97,13 +97,13 @@ typedef intrusive::list_member_hook< } struct main_context_t {}; -constexpr main_context_t main_context = main_context_t(); +const main_context_t main_context{}; struct dispatcher_context_t {}; -constexpr dispatcher_context_t dispatcher_context = dispatcher_context_t(); +const dispatcher_context_t dispatcher_context{}; struct worker_context_t {}; -constexpr worker_context_t worker_context = worker_context_t(); +const worker_context_t worker_context{}; class BOOST_FIBERS_DECL context { private: