c++ - Is it well-defined to import an identifier starting with `_[a-z0-9]` with `using` into global namespace? -


the entire question fits in title.

c++14 [global.names] says that

each name begins underscore reserved implementation use name in global namespace.

but it's not entirely clear me if following

namespace n {     void _foo() {} }  using n::_foo; 

breaks rule or not.

isn't obvious? code puts name begins underscore global namespace, such names reserved use implementation. don't that. if implementation has _foo in global namespace produce conflicts.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -