
11 Jul
2004
11 Jul
'04
10:15 a.m.
I wonder if it's possible to use preprocessor tricks to have BOOST_STATIC_CONSTANT generate enums (on IBM only) whenever they will fit? After all, integral constants _can_ be managed by the preprocessor.
So they can, but not with BOOST_STATIC_CONSTANT as is: BOOST_STATIC_CONSTANT(long long, value = 0ULL); as far as I know there's no way to do different things depending upon the second argument here, but I'd love to be proved wrong (and be very impressed as well!). John.