Ticket #1515: lambda.patch

File lambda.patch, 1.5 KB (added by Richard Webb <richard.webb@…>, 15 years ago)
  • lambda_functor_base.hpp

     
    1616namespace boost {
    1717namespace lambda {
    1818
     19#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
     20#pragma warning(push)
     21#pragma warning(disable:4512) //assignment operator could not be generated
     22#endif
    1923
    2024  // for return type deductions we wrap bound argument to this class,
    2125  // which fulfils the base class contract for lambda_functors
     
    4246  RET call(CALL_FORMAL_ARGS) const { CALL_USE_ARGS; return elem; }
    4347};
    4448
     49#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
     50#pragma warning(pop)
     51#endif
     52
    4553template <class T>
    4654inline lambda_functor<identity<T&> > var(T& t) { return identity<T&>(t); }
    4755
  • lambda_functors.hpp

     
    105105// other lambda_functors.
    106106// -------------------------------------------------------------------
    107107
     108#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
     109#pragma warning(push)
     110#pragma warning(disable:4512) //assignment operator could not be generated
     111#endif
    108112
    109 
    110113// -- lambda_functor NONE ------------------------------------------------
    111114template <class T>
    112115class lambda_functor : public T
     
    244247  }
    245248};
    246249
     250#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
     251#pragma warning(pop)
     252#endif
    247253
    248254} // namespace lambda
    249255} // namespace boost