...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
BOOST_VERSION_NUMBER
BOOST_VERSION_NUMBER(major,minor,patch)
Defines standard version numbers, with these properties:
major
number can
be in the [0,99] range.
minor
number can
be in the [0,99] range.
patch
number can
be in the [0,99999] range.
BOOST_PREDEF_MAKE_..
macros
These set of macros decompose common vendor version number macros which are composed version, revision, and patch digits. The naming convention indicates:
BOOST_PREDEF_MAKE_0X
"
for hexadecimal digits, and "BOOST_PREDEF_MAKE_10
"
for decimal digits.
V
"
indicates the version digits, "R
"
indicates the revision digits, "P
"
indicates the patch digits, and "0
"
indicates an ignored digit.
Macros are:
BOOST_PREDEF_MAKE_0X_VRP(V)
BOOST_PREDEF_MAKE_0X_VVRP(V)
BOOST_PREDEF_MAKE_0X_VRPP(V)
BOOST_PREDEF_MAKE_0X_VVRR(V)
BOOST_PREDEF_MAKE_0X_VRRPPPP(V)
BOOST_PREDEF_MAKE_0X_VVRRP(V)
BOOST_PREDEF_MAKE_0X_VRRPP000(V)
BOOST_PREDEF_MAKE_10_VPPP(V)
BOOST_PREDEF_MAKE_10_VRP(V)
BOOST_PREDEF_MAKE_10_VRP000(V)
BOOST_PREDEF_MAKE_10_VRPP(V)
BOOST_PREDEF_MAKE_10_VRR(V)
BOOST_PREDEF_MAKE_10_VRRPP(V)
BOOST_PREDEF_MAKE_10_VRR000(V)
BOOST_PREDEF_MAKE_10_VV00(V)
BOOST_PREDEF_MAKE_10_VVRR(V)
BOOST_PREDEF_MAKE_10_VVRRPP(V)
BOOST_PREDEF_MAKE_10_VVRR0PP00(V)
BOOST_PREDEF_MAKE_10_VVRR0PPPP(V)
BOOST_PREDEF_MAKE_10_VVRR00PP00(V)
BOOST_PREDEF_MAKE_*..
date macros
Date decomposition macros return a date in the relative to the 1970 Epoch date. If the month is not available, January 1st is used as the month and day. If the day is not available, but the month is, the 1st of the month is used as the day.
BOOST_PREDEF_MAKE_DATE(Y,M,D)
BOOST_PREDEF_MAKE_YYYYMMDD(V)
BOOST_PREDEF_MAKE_YYYY(V)
BOOST_PREDEF_MAKE_YYYYMM(V)