From: John Maddock (john_at_[hidden])
Date: 2004-07-11 05:15:49


> 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.