
Le 11/11/11 18:58, Michel Morin a écrit :
Exactly, thank you for the solution, it compiles fine now. A follow-up question: what this #define does? Google'ing it it does not provide a reference to the doc, only to unrelated discussions. May be you have a direct link to the documentation page? `indirect_fun` uses `result_of` to determine the return type of a functor. So the functor should have `result_type` nested-type or struct `result`. If the functor do not have them, we can use C++11 `decltype` feature to determine its return type (C++11 lambdas do not have them). To enable
qplace wrote: this feature, we have to define `BOOST_RESULT_OF_USE_DECLTYPE`.
For BOOST_RESULT_OF_USE_DECLTYPE, please see http://www.boost.org/doc/libs/1_47_0/libs/utility/utility.htm#result_of
Hi, is there any reason result_of couldn't use decltype when available? That is, could Boost define BOOST_RESULT_OF_USE_DECLTYPE when decltype is supporeted? Best, Vicente