mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-17 01:54:36 +03:00
Better writing for C++17 nested namespaces. (#85)
* Better writing for C++17 nested namespaces.
This commit is contained in:
5
CPP17.md
5
CPP17.md
@@ -170,7 +170,10 @@ namespace A {
|
||||
}
|
||||
}
|
||||
}
|
||||
// vs.
|
||||
```
|
||||
|
||||
The code above can be written like this:
|
||||
```c++
|
||||
namespace A::B::C {
|
||||
int i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user