Ticket #7161: spirit.classic.patch

File spirit.classic.patch, 1.6 KB (added by Kohei Takahashi <flast@…>, 10 years ago)
  • boost/spirit/home/classic/core/non_terminal/impl/object_with_id.ipp

    BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN  
    136136        {
    137137            {
    138138#ifdef BOOST_SPIRIT_THREADSAFE
     139#ifndef BOOST_THREAD_PROVIDES_ONCE_CXX11
    139140                static boost::once_flag been_here = BOOST_ONCE_INIT;
     141#else
     142                static boost::once_flag been_here;
     143#endif
    140144                boost::call_once(been_here, mutex_init);
    141145                boost::mutex &mutex = mutex_instance();
    142146                boost::mutex::scoped_lock lock(mutex);
  • boost/spirit/home/classic/core/non_terminal/impl/static.hpp

    BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN  
    111111    typename static_<T, Tag>::storage_type static_<T, Tag>::data_;
    112112
    113113    template <class T, class Tag>
     114#ifndef BOOST_THREAD_PROVIDES_ONCE_CXX11
    114115    once_flag static_<T, Tag>::constructed_ = BOOST_ONCE_INIT;
     116#else
     117    once_flag static_<T, Tag>::constructed_;
     118#endif
    115119
    116120BOOST_SPIRIT_CLASSIC_NAMESPACE_END
    117121
  • boost/spirit/home/classic/phoenix/closures.hpp

    private:  
    419419    closure_frame_holder_ref(holder_t* holder_ = 0)
    420420    {
    421421#ifdef PHOENIX_THREADSAFE
     422#ifndef BOOST_THREAD_PROVIDES_ONCE_CXX11
    422423        static boost::once_flag been_here = BOOST_ONCE_INIT;
     424#else
     425        static boost::once_flag been_here;
     426#endif
    423427        boost::call_once(been_here, tsp_frame_instance_init);
    424428        boost::thread_specific_ptr<holder_t*> &tsp_frame = tsp_frame_instance();
    425429        if (!tsp_frame.get())