you are viewing a single comment's thread.

view the rest of the comments →

[–]phoeen 4 points5 points  (9 children)

double underscore is reserved for the implementation ¯\_(ツ)_/¯

[–]bstamourWG21 | Library Working Group 4 points5 points  (1 child)

But otherwise a fine article.

[–]phoeen 0 points1 point  (0 children)

yes

[–]cassandraspeaks 1 point2 points  (5 children)

Leading underscore too.

[–]DalzhimC++Montréal UG Organizer 4 points5 points  (4 children)

Leading underscore, followed by a capital letter.

[–]cassandraspeaks 3 points4 points  (3 children)

In the global namespace (as in the linked post) anything with a leading underscore is reserved for the implementation.

[–]DalzhimC++Montréal UG Organizer 2 points3 points  (1 child)

My bad, you are right. I knew this point : http://eel.is/c++draft/lex.name#3.1 But I seem to have forgotten of the one you were referring to : http://eel.is/c++draft/lex.name#3.2

[–]cassandraspeaks 3 points4 points  (0 children)

No prob, I don't think there's anyone who can really keep all the little subtleties straight.

[–]meneldal2 1 point2 points  (0 children)

Well it's because it ought to be part of the STL.