Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"_" #2

Open
phresnel opened this issue Nov 4, 2014 · 2 comments
Open

"_" #2

phresnel opened this issue Nov 4, 2014 · 2 comments

Comments

@phresnel
Copy link

phresnel commented Nov 4, 2014

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
Copy link
Author

phresnel commented Nov 4, 2014

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

namespace _ = underscore;

That line would have to be removed for standards compliance.

@krlicmuhamed
Copy link

Who cares It looks cool :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants