Ticket #6910: fusion_tr1_result_of.patch
File fusion_tr1_result_of.patch, 2.1 KB (added by , 10 years ago) |
---|
-
boost/fusion/functional/adapter/unfused.hpp
100 100 101 101 namespace boost 102 102 { 103 #if !defined(BOOST_RESULT_OF_USE_DECLTYPE) || defined(BOOST_NO_DECLTYPE) 103 104 template<class F> 104 105 struct result_of< boost::fusion::unfused<F> const () > 105 106 { … … 110 111 { 111 112 typedef typename boost::fusion::unfused<F>::call_0_result type; 112 113 }; 114 #endif 115 template<class F> 116 struct tr1_result_of< boost::fusion::unfused<F> const () > 117 { 118 typedef typename boost::fusion::unfused<F>::call_const_0_result type; 119 }; 120 template<class F> 121 struct tr1_result_of< boost::fusion::unfused<F>() > 122 { 123 typedef typename boost::fusion::unfused<F>::call_0_result type; 124 }; 113 125 } 114 126 115 127 #define BOOST_FUSION_FUNCTIONAL_ADAPTER_UNFUSED_HPP_INCLUDED -
boost/fusion/functional/adapter/unfused_typed.hpp
80 80 81 81 namespace boost 82 82 { 83 #if !defined(BOOST_RESULT_OF_USE_DECLTYPE) || defined(BOOST_NO_DECLTYPE) 83 84 template<class F, class Seq> 84 85 struct result_of< boost::fusion::unfused_typed<F,Seq> const () > 85 86 : boost::fusion::unfused_typed<F,Seq>::template result< … … 90 91 : boost::fusion::unfused_typed<F,Seq>::template result< 91 92 boost::fusion::unfused_typed<F,Seq> () > 92 93 { }; 94 #endif 95 template<class F, class Seq> 96 struct tr1_result_of< boost::fusion::unfused_typed<F,Seq> const () > 97 : boost::fusion::unfused_typed<F,Seq>::template result< 98 boost::fusion::unfused_typed<F,Seq> const () > 99 { }; 100 template<class F, class Seq> 101 struct tr1_result_of< boost::fusion::unfused_typed<F,Seq>() > 102 : boost::fusion::unfused_typed<F,Seq>::template result< 103 boost::fusion::unfused_typed<F,Seq> () > 104 { }; 93 105 } 94 106 95 107