
14 Dec
2012
14 Dec
'12
4:38 p.m.
On Thu, Dec 13, 2012 at 07:53:06AM -0800, Marshall Clow wrote:
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
I'm curious why Boost is changing from a positive macro "system has feature X" to a negative one. Of the two options: #ifdef BOOST_HAS_X ... or #ifndef BOOST_NO_X ... I personally find the former much easier to read and the latter double-negative version awkward enough to be error prone. Am I alone in this opinion? Thanks, -Steve