What is __cplusplus for ISO/IEC 14882:2011?

F

Francois Grieu

In N3291 we have "The name __cplusplus is defined to the value 201103L
when compiling a C++ translation unit."

What's the value for that in ISO/IEC 14882:2011?

Francois Grieu
 
V

Victor Bazarov

In N3291 we have "The name __cplusplus is defined to the value 201103L
when compiling a C++ translation unit."

What's the value for that in ISO/IEC 14882:2011?

The paragraph [cpp.predefined]/1 says it shall be 201103L (from the
latest publicly available draft).

V
 
F

Francois Grieu

In N3291 we have "The name __cplusplus is defined to the value 201103L
when compiling a C++ translation unit."

What's the value for that in ISO/IEC 14882:2011?

The paragraph [cpp.predefined]/1 says it shall be 201103L (from the
latest publicly available draft).

That answer brings no extra information if N3291 is "the latest
publicly available draft", which is my understanding.

My question is about the *published* standard. There is no way for me
to know if that value was bumped up at the last moment, which would be
kind of logical.

Francois Grieu
 
F

Francois Grieu

In N3291 we have "The name __cplusplus is defined to the value 201103L
when compiling a C++ translation unit."

What's the value for that in ISO/IEC 14882:2011?

The paragraph [cpp.predefined]/1 says it shall be 201103L (from the
latest publicly available draft).

I (now) understand that "the latest publicly available draft" might be
something after approval of ISO/IEC 14882:2011, which would be a strong
indication that ISO/IEC 14882:2011 also has 201103L.

And indeed there is N3337 Dated: 2012-01-16, wich still has 201103L.

Thus I thank Victor Bazarov, remove my former message, and conclude
that most probably ISO/IEC 14882:2011 has 201103L.

Francois Grieu
 
B

Bo Persson

Francois said:
In N3291 we have "The name __cplusplus is defined to the value
201103L when compiling a C++ translation unit."

What's the value for that in ISO/IEC 14882:2011?

Francois Grieu

N3291 (or its sister document N3290) *is* the document that was
accepted as the standard.

It was just a Yes or No vote, with no changes allowed.


Bo Persson
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,807
Latest member
ryef

Latest Threads

Top