Boost logo

Boost :

From: David B. Held (dheld_at_[hidden])
Date: 2003-01-07 14:45:13


"Terje Slettebø" <tslettebo_at_[hidden]> wrote in message
news:023f01c2b65a$1758e990$cb6c6f50_at_pc...
> [...]
> Thus, it prefers static const, if it's possible to initialise it in-class,
> on the given compiler, as allowed in the standard. However,
> "C++ Templates: The Complete Guide" says about the difference
> between the two (p. 304):
> [...]

I agree that Vandevoorde & Josuttis give a pretty compelling
argument in favor of enum. I think it should be considered a
best practice for Boost code, and BOOST_STATIC_CONSTANT
should be deprecated, unless there is a reason that enum is
inferior on some platforms.

Dave


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