Boost logo

Boost :

Subject: Re: [boost] [Config] Meaning of BOOST_NO_CXX11_HDR_INITIALIZER_LIST
From: John Maddock (boost.regex_at_[hidden])
Date: 2012-03-09 04:25:08


>> I don't think there's a need to change anything there is there? The
>> logic is just saying that we can't include both <ext/hash_set> and
>> <hash_set>, so as long as BOOST_NO_STD_UNORDERED gets set in suffix.hpp I
>> think it should be OK? Hopefully ;-)
>
> Well, I'd like to change it to use something else (some other macro)
> instead, since we're deprecating BOOST_NO_STD_UNORDERED, and I was
> wondering which one you thought was most appropriate.

OK, the strict replacement would be to replace:

defined(BOOST_NO_STD_UNORDERED)

with

(defined(BOOST_NO_CXX11_HDR_UNORDERED_MAP) ||
defined(BOOST_NO_CXX11_HDR_UNORDERED_SET))

since including either of those headers would break the test.

HTH, John.


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