|
Boost Users : |
Subject: Re: [Boost-users] [result_of] Simple question
From: niXman (i.nixman_at_[hidden])
Date: 2011-10-07 03:57:53
typedef my_function_type::result_type my_return_type;
2011/10/7 Robert Jones <robertgbjones_at_[hidden]>:
> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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