
On Mar 27, 2012, at 9:13 PM, Michel Morin wrote:
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.
OK, yeah, life will be much better when result_of uses decltype by default.
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
That's a good idea. I like that. - Daniel