
"David Abrahams" <dave@boost-consulting.com> wrote in message news:ud5t18xf2.fsf@boost-consulting.com...
"Gennadiy Rozental" <gennadiy.rozental@thomson.com> writes:
Why don't we have single BOOST_GCC macro which defines version of gcc compiler. In numerous places around boost we need to check for specific versions on gcc and required to use complex expressions involving up to 3 gcc variables.
Because nobody has introduced it. The usual answer applies: since you care enough to ask, maybe you should just go ahead and do it. It's a good idea that's been discussed before.
I did not find this discussion. I added following into gcc.hpp: #if __GNUC__ < 3 # define BOOST_GCC BOOST_JOIN(__GNUC__,__GNUC_MINOR__) #else # define BOOST_GCC BOOST_JOIN( BOOST_JOIN(__GNUC__,__GNUC_MINOR__),__GNUC_PATCHLEVEL__) #endif This should work until second or third component is < 10. Also appropriate print added into confg_info. Anybody mind? Gennadiy