Boost logo

Boost :

Subject: Re: [boost] How to detect if f() returns void or not?
From: Maxime van Noppen (maxime_at_[hidden])
Date: 2009-12-12 08:36:31


Frédéric Bron wrote:
> I would like to detect if the return type of a function is void or not
> within C++03 standard?

Hi,

Did you look at Boost.FunctionTypes ?

http://www.boost.org/doc/libs/1_41_0/libs/function_types/doc/html/boost_functiontypes/reference/decomposition.html#boost_functiontypes.reference.decomposition.result_type

-- 
Maxime

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