C++0x configuration macros redux

Hi all, A while back, I put some preliminary C++0x configuration macros into the Config library, but they were half-baked. I've finally finished them. The macros are: BOOST_HAS_CONCEPTS BOOST_HAS_LONG_LONG (it's part of C++0x) BOOST_HAS_RVALUE_REFS BOOST_HAS_STATIC_ASSERT BOOST_HAS_VARIADIC_TMPL Documentation, configure tests, and the appropriate detection code is on mainline CVS. The only client of these macros so far is static_assert.hpp, which uses the C++0x static_assert facility when it is available. In the near future, I hope to get some nightly regression tests running with the prerelease GCC 4.3's experimental C++0x mode, so we can start trying out some of these features in Boost. Cheers, Doug

AMDG Douglas Gregor <doug.gregor <at> gmail.com> writes:
Hi all,
A while back, I put some preliminary C++0x configuration macros into the Config library, but they were half-baked. I've finally finished them. The macros are:
<snip>
BOOST_HAS_RVALUE_REFS
Would you mind adding a version check for metrowerks. 9.2 warns me about unrecognized __option In Christ, Steven Watanabe

On Thu, 2007-03-15 at 18:13 +0000, Steven Watanabe wrote:
AMDG
Douglas Gregor <doug.gregor <at> gmail.com> writes:
Hi all,
A while back, I put some preliminary C++0x configuration macros into the Config library, but they were half-baked. I've finally finished them. The macros are:
<snip>
BOOST_HAS_RVALUE_REFS
Would you mind adding a version check for metrowerks. 9.2 warns me about unrecognized __option
I believe Metrowerks 10 is the first version to contain support for rvalue references. Since I don't know (and couldn't find online) the __MWERKS__ constant for Metrowerks 10, I'm changing the __option check to: #if __MWERKS__ > 0x3206 && __option(rvalue_refs) # define BOOST_HAS_RVALUE_REFS #endif If someone knows better, please tell me or update the config in Boost CVS. Cheers, Doug
participants (2)
-
Douglas Gregor
-
Steven Watanabe