Instead of:
namespace N1 { namespace N2 {
}}
You can write:
namespace N1::N2 {
}
Reference: https://en.wikipedia.org/wiki/C%2B%2B17
Tuesday, October 10, 2017
C++17: Shortened Nested Namespace Definitions
C++17 allows nested namespace definitions to be shortened.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment