C++ Logo

sg7

Advanced search

Re: [SG7] TS Reflection experimental implementation in Clang available

From: Peter Dimov <pdimov_at_[hidden]>
Date: Thu, 2 Dec 2021 18:00:23 +0200
David Rector wrote:
> Do I understand correctly that this means the user does not *ever* need to
> directly use the double-underscored keywords —

In C++, identifiers containing double underscore are reserved for the
implementation (http://eel.is/c++draft/lex.name#3). These are generally
never used by the standard. C standards have had a practice of using these
reserved identifiers (e.g. _Bool), but this is not the case in C++.

I don't think a standard C++ keyword will ever be double-underscored.

Received on 2021-12-02 10:01:32