Ticket #1515: lambda.patch
File lambda.patch, 1.5 KB (added by , 15 years ago) |
---|
-
lambda_functor_base.hpp
16 16 namespace boost { 17 17 namespace lambda { 18 18 19 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) 20 #pragma warning(push) 21 #pragma warning(disable:4512) //assignment operator could not be generated 22 #endif 19 23 20 24 // for return type deductions we wrap bound argument to this class, 21 25 // which fulfils the base class contract for lambda_functors … … 42 46 RET call(CALL_FORMAL_ARGS) const { CALL_USE_ARGS; return elem; } 43 47 }; 44 48 49 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) 50 #pragma warning(pop) 51 #endif 52 45 53 template <class T> 46 54 inline lambda_functor<identity<T&> > var(T& t) { return identity<T&>(t); } 47 55 -
lambda_functors.hpp
105 105 // other lambda_functors. 106 106 // ------------------------------------------------------------------- 107 107 108 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) 109 #pragma warning(push) 110 #pragma warning(disable:4512) //assignment operator could not be generated 111 #endif 108 112 109 110 113 // -- lambda_functor NONE ------------------------------------------------ 111 114 template <class T> 112 115 class lambda_functor : public T … … 244 247 } 245 248 }; 246 249 250 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) 251 #pragma warning(pop) 252 #endif 247 253 248 254 } // namespace lambda 249 255 } // namespace boost