We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0b2d53 + 4cd9b69 commit 4f7334eCopy full SHA for 4f7334e
1 file changed
adoc/code/specialization_id.cpp
@@ -41,12 +41,11 @@ namespace {
41
constexpr specialization_id<int> same_name { 12 }; // OK
42
}
43
inline namespace other {
44
-int same_name; // ILLEGAL: shadows "specialization_id"
45
- // variable with same name in enclosing
46
- // namespace scope
+int same_name; // ILLEGAL: shadows "specialization_id" variable with same name in
+ // enclosing namespace scope
47
48
-inline namespace {
49
-namespace foo { // ILLEGAL: namespace name shadows "::foo"
+inline namespace other2 {
+namespace foo { // ILLEGAL: namespace name shadows "::foo" namespace which contains
+ // "specialization_id" variable.
50
} // namespace foo
51
- // "specialization_id" variable.
52
} // namespace
0 commit comments