"Terje Slettebų" <[EMAIL PROTECTED]> wrote in message
023f01c2b65a$1758e990$cb6c6f50@pc">news:023f01c2b65a$1758e990$cb6c6f50@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




_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to