
16 Jul
2010
16 Jul
'10
3:11 a.m.
On Thu, Jul 15, 2010 at 4:52 PM, Andy Venikov <avenikov@gmail.com> wrote:
BTW, defining result<> seems to be not necessary, but I think it's a good idea to have it.
Are you sure you're actually calling the function_adaptor object? The result member is necessary as soon as boost::result_of is instantiated, which happens when you invoke the function_adaptor's call operator. Also, you may be interested in an upcoming new feature. When Boost 1.44 is released you will no longer need to define result if your compiler supports C++0x decltype. To enable this new feature define BOOST_RESULT_OF_USE_DECLTYPE before including boost/utility/result_of.hpp. Daniel Walker