Boost logo

Boost :

Subject: Re: [boost] [Review] Type Traits Extension ending tomorrow
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-03-17 13:51:14


>> I'm not much concerned whether it's possible to check for void return
>> types as I can't think of a use for that ;-)
>
> Joining the discussion a bit late... isn't it possible with
> typeof/decltype?
> In which case the library should allow it, even if it's not possible on
> all compilers.

Good catch - use decltype to get the return type and pass to is_convertible.
Of course it complicates the implementation....

John.


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