mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-17 10:04:35 +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 {
|
namespace A::B::C {
|
||||||
int i;
|
int i;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user