underscore.cpp icon indicating copy to clipboard operation
underscore.cpp copied to clipboard

"_"

Open phresnel opened this issue 11 years ago • 2 comments

It seems your library can not be legally used:

According to Section 17.6.4.3.2 "Global names" [global.names] in the C++ Standard Draft N3242, your use of the underscore character as a namespace is not allowed:

Certain sets of names and function signatures are always reserved to the [C++] implementation:

  • ...
  • Each name that begins with an underscore is reserved to the implementation for use as a name in the global namespace.

If I would use your library, this would make my own code illegal.

phresnel avatar Nov 04 '14 11:11 phresnel

I realise that "_" is just an alias of "underscore":

namespace _ = underscore;

That line would have to be removed for standards compliance.

phresnel avatar Nov 04 '14 11:11 phresnel

Who cares It looks cool :D

krlicmuhamed avatar May 25 '16 18:05 krlicmuhamed