
7 Oct
2011
7 Oct
'11
8:09 a.m.
On Fri, Oct 7, 2011 at 8:58 AM, Julien Nitard
Hello,
Doesn't Boost.Function support 'result_of', or am I missing something obvious?
More the opposite, result_of doesn't support boost::function and is quite limited without "recent" compiler features.
typedef boost::result_of
::type my_return_type; You may want to use "#define BOOST_RESULT_OF_USE_DECLTYPE" if your compiler is recent enough. Explanations in the docs of result_of. Of course if your compiler is even more recent, it may support * std::result_of.*
Hi Julien - I think I've read the relevant pages already, but it seems to come down to whether the Boost.Function properly publishes its return type. I am a little surprised that it seems not to. Thx, R.