Skip to content

Commit

Permalink
Better writing for C++17 nested namespaces. (#85)
Browse files Browse the repository at this point in the history
* Better writing for C++17 nested namespaces.
  • Loading branch information
rodrigocfd committed Jul 19, 2020
1 parent 5c6303d commit 2096b97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CPP17.md
Expand Up @@ -170,7 +170,10 @@ namespace A {
}
}
}
// vs.
```

The code above can be written like this:
```c++
namespace A::B::C {
int i;
}
Expand Down
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -748,7 +748,10 @@ namespace A {
}
}
}
// vs.
```

The code above can be written like this:
```c++
namespace A::B::C {
int i;
}
Expand Down

0 comments on commit 2096b97

Please sign in to comment.