Tuesday, October 10, 2017

C++17: Shortened Nested Namespace Definitions

C++17 allows nested namespace definitions to be shortened.

Instead of:

namespace N1 { namespace N2 {
}}

You can write:

namespace N1::N2 {
}
Reference: https://en.wikipedia.org/wiki/C%2B%2B17

No comments:

Post a Comment