Skip to content

Commit 4f7334e

Browse files
authored
Merge pull request KhronosGroup#276 from gmlueck/gmlueck/spec-id-format
Fix specialization id example
2 parents e0b2d53 + 4cd9b69 commit 4f7334e

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

adoc/code/specialization_id.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ namespace {
4141
constexpr specialization_id<int> same_name { 12 }; // OK
4242
}
4343
inline namespace other {
44-
int same_name; // ILLEGAL: shadows "specialization_id"
45-
// variable with same name in enclosing
46-
// namespace scope
44+
int same_name; // ILLEGAL: shadows "specialization_id" variable with same name in
45+
// enclosing namespace scope
4746
}
48-
inline namespace {
49-
namespace foo { // ILLEGAL: namespace name shadows "::foo"
47+
inline namespace other2 {
48+
namespace foo { // ILLEGAL: namespace name shadows "::foo" namespace which contains
49+
// "specialization_id" variable.
5050
} // namespace foo
51-
// "specialization_id" variable.
5251
} // namespace

0 commit comments

Comments
 (0)