summaryrefslogtreecommitdiff
path: root/boost/context/stack_context.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/context/stack_context.hpp')
-rw-r--r--boost/context/stack_context.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/boost/context/stack_context.hpp b/boost/context/stack_context.hpp
index 48863b3bc8..24a54e5748 100644
--- a/boost/context/stack_context.hpp
+++ b/boost/context/stack_context.hpp
@@ -31,7 +31,11 @@ struct stack_context {
unsigned valgrind_stack_id;
#endif
+#if defined(BOOST_NO_CXX11_CONSTEXPR)
stack_context() :
+#else
+ constexpr stack_context() :
+#endif
size( 0),
sp( 0),
segments_ctx()
@@ -48,7 +52,11 @@ struct stack_context {
unsigned valgrind_stack_id;
#endif
+#if defined(BOOST_NO_CXX11_CONSTEXPR)
stack_context() :
+#else
+ constexpr stack_context() :
+#endif
size( 0),
sp( 0)
#if defined(BOOST_USE_VALGRIND)