Boost logo

Boost :

From: Jason Hise (chaos_at_[hidden])
Date: 2005-12-07 19:59:01


Frank Laub wrote:

>Also: does your implementation cope with defining an enum inside a class?
>
>
>>(I could live with an answer of "No" - I would just have to put the enum
>>outside the class.)
>>
>>
>Nope, currently this doesn't work. Maybe there's some trick to perform here?
>
>
>There should be no problems using this macro in a header file. I get around
>the one definition rule by simply making the enum actually be a namespace
>with static functions inside that namespace.
>
>
Just change 'namespace' to 'struct' and I think you should be set :)

-Jason


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