Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-06-24 09:17:42


Neil Groves wrote:
>> Also, I think you should add to the documentation that the functors need
>> to have result_type (or be real functions).
>> It might be interesting to make it so decltype/typeof/emulation can be
>> used instead, by the way. It shouldn't be too difficult to wrap the
>> function objects so that result_type can be automatically deduced, since
>> in all cases the types of all arguments are fixed.
> I will look into this suggestion. To be perfectly honest I am not sure
> how to make it work for all
> function types. I suspect that a good look around the other Boost
> libraries or search engines will
> reveal a solution. This may take me longer due to my lack of
> experience with this approach.

Can't you use result_of?

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at