Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-04-12 00:00:45


"David Abrahams" <dave_at_[hidden]> wrote in message
news:ud5t18xf2.fsf_at_boost-consulting.com...
> "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
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


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