Boost logo

Boost :

Subject: [boost] Another set of macros to deprecate (and then remove)?
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2012-12-13 10:53:06


There are a set of macros in Boost.config that describe "features that are not required by the C++ standard"

Some of these features have been incorporated into C++11.

I propose that we retire these macros, and have people use the shiny C++11 versions.

In particular:
        BOOST_HAS_STATIC_ASSERT should be ! BOOST_NO_CXX11_ASSERT
        BOOST_HAS_VARIADIC_TMPL should be ! BOOST_NO_CXX11_VARIADIC_TEMPLATES
        BOOST_HAS_RVALUE_REFS should be ! BOOST_NO_CXX11_RVALUE_REFERENCES
        BOOST_HAS_CHAR_16_T should be ! BOOST_NO_CXX11_CHAR_16_T
        BOOST_HAS_CHAR_32_T should be ! BOOST_NO_CXX11_CHAR_32_T

I'm using "!" here generically; in code you would replace

        #ifdef OLD_MACRO
with
        #ifndef NEW_MACRO
etc.

I don't think this will be very disruptive; very few boost libraries use these macros.

Opinions? Other macros that fit into this group?

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki


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