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-13 04:44:38


> I solved this problem once while writing a different trait and documented it
> here:
> http://www.boost.org/doc/libs/1_41_0/doc/html/proto/appendices.html#boost_proto.appendices.implementation.function_arity

This does not check for return type but just ignores it with the
operator, trick. In the end, you do not know if fun(a,b) return void
or not.
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