Ticket #10386: boost-1_56_0-coroutine_inline_msvc12.patch

File boost-1_56_0-coroutine_inline_msvc12.patch, 2.2 KB (added by Christian Maaser <runningwithscythes@…>, 8 years ago)

fix for MSVC

  • boost/coroutine/asymmetric_coroutine.hpp

    diff --git a/boost/coroutine/asymmetric_coroutine.hpp b/boost/coroutine/asymmetric_coroutine.hpp
    index 38ad3ab..08e271c 100644
    a b private:  
    341341    { BOOST_ASSERT( impl_); }
    342342
    343343public:
    344     push_coroutine() BOOST_NOEXCEPT :
     344    inline push_coroutine() BOOST_NOEXCEPT :
    345345        impl_( 0)
    346346    {}
    347347
    public:  
    349349# ifdef BOOST_MSVC
    350350    typedef void ( * coroutine_fn)( pull_coroutine< void > &);
    351351
    352     explicit push_coroutine( coroutine_fn,
    353                              attributes const& = attributes() );
     352    inline explicit push_coroutine( coroutine_fn,
     353                                    attributes const& = attributes() );
    354354
    355355    template< typename StackAllocator >
    356356    explicit push_coroutine( coroutine_fn,
    public:  
    394394        }
    395395    }
    396396
    397     push_coroutine( BOOST_RV_REF( push_coroutine) other) BOOST_NOEXCEPT :
     397    inline push_coroutine( BOOST_RV_REF( push_coroutine) other) BOOST_NOEXCEPT :
    398398        impl_( 0)
    399399    { swap( other); }
    400400
    401     push_coroutine & operator=( BOOST_RV_REF( push_coroutine) other) BOOST_NOEXCEPT
     401    inline push_coroutine & operator=( BOOST_RV_REF( push_coroutine) other) BOOST_NOEXCEPT
    402402    {
    403403        push_coroutine tmp( boost::move( other) );
    404404        swap( tmp);
    public:  
    407407
    408408    BOOST_EXPLICIT_OPERATOR_BOOL();
    409409
    410     bool operator!() const BOOST_NOEXCEPT
     410    inline bool operator!() const BOOST_NOEXCEPT
    411411    { return 0 == impl_ || impl_->is_complete(); }
    412412
    413     void swap( push_coroutine & other) BOOST_NOEXCEPT
     413    inline void swap( push_coroutine & other) BOOST_NOEXCEPT
    414414    { std::swap( impl_, other.impl_); }
    415415
    416     push_coroutine & operator()()
     416    inline push_coroutine & operator()()
    417417    {
    418418        BOOST_ASSERT( * this);
    419419
    push_coroutine< Arg & >::push_coroutine( coroutine_fn fn,  
    16091609    BOOST_ASSERT( impl_);
    16101610}
    16111611
    1612 push_coroutine< void >::push_coroutine( coroutine_fn fn,
    1613                                         attributes const& attrs) :
     1612inline push_coroutine< void >::push_coroutine( coroutine_fn fn,
     1613                                               attributes const& attrs) :
    16141614    impl_( 0)
    16151615{
    16161616    // create a stack-context