Ticket #4072: result_of_msvc10.patch
File result_of_msvc10.patch, 1.2 KB (added by , 13 years ago) |
---|
-
detail/result_of_iterate.hpp
10 10 # error Boost result_of - do not include this file! 11 11 #endif 12 12 13 #if !defined(BOOST_ NO_DECLTYPE)13 #if !defined(BOOST_RESULT_OF_NO_DECLTYPE) 14 14 15 15 // As of N2588, C++0x result_of only supports function call 16 16 // expressions of the form f(x). This precludes support for member … … 76 76 77 77 #undef BOOST_RESULT_OF_ARGS 78 78 79 #endif // defined(BOOST_ NO_DECLTYPE)79 #endif // defined(BOOST_RESULT_OF_NO_DECLTYPE) 80 80 81 81 #if BOOST_PP_ITERATION() >= 1 82 82 -
result_of.hpp
27 27 # define BOOST_RESULT_OF_NUM_ARGS 10 28 28 #endif 29 29 30 // On msvc-10, the decltype implementation of result_of causes 31 // spurious template instantiations in some cases, leading to 32 // errors. 33 #if defined(BOOST_NO_DECLTYPE) || BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1600)) 34 # define BOOST_RESULT_OF_NO_DECLTYPE 35 #endif 36 30 37 namespace boost { 31 38 32 39 template<typename F> struct result_of;