[basic.link] paragraph 4 in the C++14 Standard:
An unnamed namespace or a namespace declared directly or indirectly within an unnamed namespace has internal linkage. All other namespaces have external linkage. A name having namespace scope that has not been given internal linkage above has the same linkage as the enclosing namespace if it is the name of ...
What does it mean by "indirectly declaring a namespace within another namespace" above?
It means a namespace nested inside an unnamed namespace, so either a namespace declared as a member of an unnamed namespace, or declared as a member of a namespace declared as a member of an unnamed namespace, or so on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With