
28 Mar
2012
28 Mar
'12
1:13 a.m.
Hi Daniel, Daniel Walker wrote:
Michel, do you just want a C++11 result_of that works out-of-the-box or do you really need a separate interface in addition to boost::result_of?
The former; there are some complaints that boost::result_of cannot deal with C++11 lambdas (without BOOST_RESULT_OF_USE_DECLTYPE). As a response to the discussions in #6728 https://svn.boost.org/trac/boost/ticket/6728 I made this post. But personally, I think using `tr1_functor` and `make_tr1_functor` (which wraps non-tr1 functors into tr1 functors using decltype) is a better idea than the approach with `cxx11_result_of`. The code for`tr1_functor` and `make_tr1_functor` is attached at http://lists.boost.org/boost-users/2012/01/72879.php Regards, Michel