Boost logo

Boost :

From: Daryle Walker (darylew_at_[hidden])
Date: 2001-03-15 15:49:06


on 3/13/01 11:10 AM, Dean at deansturtevant_at_[hidden] wrote:

[SNIP old suggestion for release_version.hpp, that included constants
 for the parts of the current version]
> I think this suggestion is a tad too complicated. Not only that, but
> I maintain that the mere existence of these constants is dangerous.
> How about having one version number and one version string? The
> string could be instantiated in a library.

Do you mean that the string would be a real C++ object? What's wrong with
making that a macro too?

//==================================================
// Disclaimer...
// History...

// Past versions
#define BOOST_VERSION_1_21_1 0x0178
//...
#define BOOST_VERSION_2_1_0 0x0201

// Current version
#define BOOST_VERSION_CURRENT BOOST_VERSION_2_1_0
#define BOOST_VERSION_STRING "2.1.0"
//==================================================

-- 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

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