Boost logo

Boost :

Subject: Re: [boost] detect an enum type in template arguments
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2011-03-03 16:02:19


Aston-2 wrote:
>
> Hi,
>
> consider the example below, is there a way to detect an enum type and
> non-enum type ?
>
> thus if there were a way to do it, assume it to be "is_enum::value" then
> the output of example below would have been
>
>

Hi,

you should get what you are looking for with boost::enable_if.

Best,
Vicente

--
View this message in context: http://boost.2283326.n4.nabble.com/detect-an-enum-type-in-template-arguments-tp3332825p3334195.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

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