underscore.cpp
underscore.cpp copied to clipboard
"_"
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.
I realise that "_" is just an alias of "underscore":
namespace _ = underscore;
That line would have to be removed for standards compliance.
Who cares It looks cool :D