[config] Is there a macro to check if we are compiling in C++0x mode?

Hi, 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? Best, _____________________ Vicente Juan Botet Escribá http://viboes.blogspot.com/

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. John.

----- Original Message ----- From: "John Maddock" <boost.regex@virgin.net> To: <boost@lists.boost.org> 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
participants (2)
-
John Maddock
-
vicente.botet