From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-04-12 00:00:45
"David Abrahams" <dave_at_[hidden]> wrote in message
> "Gennadiy Rozental" <gennadiy.rozental_at_[hidden]> 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
> > 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__)
# define BOOST_GCC BOOST_JOIN(
This should work until second or third component is < 10.
Also appropriate print added into confg_info.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk