
8 Dec
2005
8 Dec
'05
12:59 a.m.
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