Boost logo

Boost Users :

Subject: [Boost-users] [result_of] Simple question
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2011-10-07 03:52:51


Morning All

It's first thing in the morning for me, so maybe my neurons aren't warmed
up, but I was
surprised this doesn't work.

#include <boost/utility/result_of.hpp>
#include <boost/function.hpp>

typedef boost::function<int(char)> my_function_type;

typedef boost::result_of<my_function_type>::type my_return_type;

Doesn't Boost.Function support 'result_of', or am I missing something
obvious?

If not, is there some other idiom for this, bearing mind that
'my_function_type' might
be a Boost.Function, or a true function, or a Boost.Bind?

Thx,

- Rob.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net