Boost logo

Boost :

Subject: Re: [boost] How to detect if f() returns void or not?
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2009-12-12 10:49:44


> Did you look at Boost.FunctionTypes ?
> What about using function_traits::return_type ?

The problem is that I do not even know the function the return type I
want to know because it is the result of a<b. If operator<(A,B) does
not exist there may be another operator< that is still fine with
appropriate convertions.
So what I really want is the type of an expression, not of a function,
the expression being a<b.

Frédéric


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk