Operating System - HP-UX
1748255 Members
3960 Online
108760 Solutions
New Discussion юеВ

Testing for C++0x mode in HP aCC

 
SOLVED
Go to solution
EdDiener
Occasional Contributor

Testing for C++0x mode in HP aCC

If I compile with the C++0x mode by using the command line option -Ax, how can I test for this mode via a macro #define ? I could find no macro which is defined or set to 1 if this mode is on.
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: Testing for C++0x mode in HP aCC

>I could find no macro which is defined

Where did you look?
The -v output shows: -D_HP_CXX0x_SOURCE
(I've just updated the man page.)
EdDiener
Occasional Contributor

Re: Testing for C++0x mode in HP aCC

< Where did you look?
< The -v output shows: -D_HP_CXX0x_SOURCE
< (I've just updated the man page.)

I looked in the documentation under Predefined Macros. Are you saying that there is a macro HP_CXX0x_SOURCE that is defined only when in C++0x mode ?
Dennis Handly
Acclaimed Contributor
Solution

Re: Testing for C++0x mode in HP aCC

>I looked in the documentation under Predefined Macros.

Unfortunately it isn't documented, google only finds this thread.

>Are you saying that there is a macro HP_CXX0x_SOURCE that is defined only when in C++0x mode?

I thought I did. :-)