Subject: Re: [boost] [config] BOOST_NO_CXX11_HDR_MEMORY and gcc-4.6.2
From: Jonathan Wakely (jwakely.boost_at_[hidden])
Date: 2013-10-28 20:58:50
On 29 October 2013 00:56, Vicente J. Botet Escriba wrote:
> Le 29/10/13 01:52, Beman Dawes a écrit :
>> On Mon, Oct 28, 2013 at 6:10 PM, Vicente J. Botet Escriba <
>> vicente.botet_at_[hidden]> wrote:
>> The problem I have is don't know a Boost.Config macro to know if the user
>>> compiles with C++11, so I need to rely on other feature macros.
>> Would __GXX_EXPERIMENTAL_CXX0X__ work?
> This is not portable, it is GNU specific, isn't it?
Yes, but you could combine it with checking the value of __cplusplus:
#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk