|
Boost : |
From: williamkempf_at_[hidden]
Date: 2001-03-13 16:48:33
--- In boost_at_y..., "Craig Henderson" <chenderson_at_i...> wrote:
> Should this be a macro at all? I would prefer to see something like
> const enum { BOOST_VERSION_1_21_0 = 0x0177 };
> const enum { BOOST_CURRENT_VERSION = BOOST_VERSION_1_21_0 };
> and limit macro's to pre-processing platform/compiler specific
stuff.
A macro allows you to do conditional compilation while an integral
constant of any form will not. In general, such "version macros" are
only useful in that they allow you to do conditional compilation.
Other uses are "fluff" (such as printing version numbers) and
wouldn't warrant the inclusion into the Boost headers.
Bill Kempf
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk