
David Abrahams wrote:
Someone at one point suggested we add something like this:
# ifdef __GNUC_PATCHLEVEL__ # define BOOST_GNUC_FULL_VERSION ((__GNUC__ * 1000UL + __GNUC_MINOR__) * 1000UL + __GNUC_PATCHLEVEL__) # else # define BOOST_GNUC_FULL_VERSION 0 # endif
Without it, testing for GCC versions is painful. I'd like it; can we do it?
Something similar is suggested in the CPP manual, here: http://gcc.gnu.org/onlinedocs/gcc-4.0.0/cpp/Common-Predefined-Macros.html Quick paste: #define GCC_VERSION (__GNUC__ * 10000 \ + __GNUC_MINOR__ * 100 \ + __GNUC_PATCHLEVEL__) ... /* Test for GCC > 3.2.0 */ #if GCC_VERSION > 30200 -- Pedro LamarĂ£o Desenvolvimento Intersix Technologies S.A. SP: (55 11 3803-9300) RJ: (55 21 3852-3240) www.intersix.com.br Your Security is our Business