Boost logo

Boost :

Subject: Re: [boost] [config] Is there a macro to check if we are compilinginC++0x mode?
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-05-20 05:35:43


----- Original Message -----
From: "John Maddock" <boost.regex_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Thursday, May 20, 2010 11:18 AM
Subject: Re: [boost] [config] Is there a macro to check if we are compilinginC++0x mode?

>
>>In Boost.Config I see "Macros that describe C++0x features not supported",
>>but there is a macro to check if the compiler is working on C++0x mode?
>
> I don't believe so, you have to check to see if the particular C++0x feature
> you want to use are supported. I don't think that's unreasonable given that
> compiler vendors are implementing the new features piecemeal.

Yes, you are surely right. I wanted to separate the code that can run on C++0x compilers from the other. But the C++0x branch will need to check for specific C++0x features, so this branch will be able to work also with non C++0x support.

Thanks,
Vicente


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