Skip to content

Commit 4cd9b69

Browse files
committed
Small fix to specialization id example
Small fix to avoid a C++ syntax error with the code sample.
1 parent 8567e2a commit 4cd9b69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adoc/code/specialization_id.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ inline namespace other {
4444
int same_name; // ILLEGAL: shadows "specialization_id" variable with same name in
4545
// enclosing namespace scope
4646
}
47-
inline namespace {
47+
inline namespace other2 {
4848
namespace foo { // ILLEGAL: namespace name shadows "::foo" namespace which contains
4949
// "specialization_id" variable.
5050
} // namespace foo

0 commit comments

Comments
 (0)