summaryrefslogtreecommitdiff
path: root/boost/spirit/home/classic/phoenix/closures.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/spirit/home/classic/phoenix/closures.hpp')
-rw-r--r--boost/spirit/home/classic/phoenix/closures.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/boost/spirit/home/classic/phoenix/closures.hpp b/boost/spirit/home/classic/phoenix/closures.hpp
index 6493e387a3..f833b4ef59 100644
--- a/boost/spirit/home/classic/phoenix/closures.hpp
+++ b/boost/spirit/home/classic/phoenix/closures.hpp
@@ -419,7 +419,11 @@ private:
closure_frame_holder_ref(holder_t* holder_ = 0)
{
#ifdef PHOENIX_THREADSAFE
+#ifndef BOOST_THREAD_PROVIDES_ONCE_CXX11
static boost::once_flag been_here = BOOST_ONCE_INIT;
+#else
+ static boost::once_flag been_here;
+#endif
boost::call_once(been_here, tsp_frame_instance_init);
boost::thread_specific_ptr<holder_t*> &tsp_frame = tsp_frame_instance();
if (!tsp_frame.get())