Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What is __cplusplus for ISO/IEC 14882:2011?

36 views
Skip to first unread message

Francois Grieu

unread,
Feb 8, 2012, 9:19:17 AM2/8/12
to
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

Victor Bazarov

unread,
Feb 8, 2012, 9:49:24 AM2/8/12
to
The paragraph [cpp.predefined]/1 says it shall be 201103L (from the
latest publicly available draft).

V
--
I do not respond to top-posted replies, please don't ask

Francois Grieu

unread,
Feb 8, 2012, 10:08:12 AM2/8/12
to
On 08/02/2012 15:49, Victor Bazarov wrote :
> On 2/8/2012 9:19 AM, Francois Grieu wrote:
>> 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

Francois Grieu

unread,
Feb 8, 2012, 11:13:11 AM2/8/12
to
On 08/02/2012 15:49, Victor Bazarov wrote:
> On 2/8/2012 9:19 AM, Francois Grieu wrote:
>> 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

Bo Persson

unread,
Feb 8, 2012, 3:48:43 PM2/8/12
to
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


0 new messages