Boost logo

Boost :

Subject: Re: [boost] detect an enum type in template arguments
From: Juraj Ivanèiæ (juraj.ivancic_at_[hidden])
Date: 2011-03-03 15:36:28


On 3.3.2011 7:32, Aston wrote:

> consider the example below, is there a way to detect an enum type and non-enum type ?

You can use boost::is_enum metafunction from the type traits
library. Example attached.




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