|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-07-10 09:14:43
Tobias Schwinger <tschwinger_at_[hidden]> writes:
> How about these?
>
> #define BOOST_COMPILER_WITH_VERSION(compiler,version) \
> (compiler == version)
>
> #define BOOST_COMPILER_ABOVE_VERSION(compiler,version) \
> (compiler > version)
>
> #define BOOST_COMPILER_FROM_VERSION(compiler,version) \
> (compiler >= version)
>
> #define BOOST_COMPILER_BELOW_VERSION(compiler,version) \
> ((compiler != 0) && (compiler < version))
>
> #define BOOST_COMPILER_UP_TO_VERSION(compiler,vesionr) \
> ((compiler != 0) && (compiler <= version))
>
> #define BOOST_COMPILER_FROM_TO_VERSION(compiler,min_version,max_version) \
> ((compiler != 0) && ((compiler >= min_version) && (compiler <= max_version)))
No. That's what BOOST_WORKAROUND does, and BOOST_WORKAROUND does it
better. Please read
http://www.boost-consulting.com/boost/boost/detail/workaround.hpp
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk