Boost logo

Boost :

Subject: Re: [boost] SFINAE yes_type and no_type
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-04-16 16:42:53


On 16/04/2011 22:24, Simonson, Lucanus J wrote:

> I think I'm using the one from MPL. If you use MPL for the compile time boolean operations with enable_if then you might as well use the ones in MPL. Actually, it turns out I'm inheriting from the ones in MPL, but it could have been a typedef.
>
> struct gtl_no : mpl::bool_<false> {};
> struct gtl_yes : mpl::bool_<true> {};

Both of these types have the same size.


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