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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -