We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e4c52b commit 48a8bceCopy full SHA for 48a8bce
talk/basicconcepts/scopesnamespaces.tex
@@ -159,8 +159,7 @@
159
160
\begin{frame}[fragile]
161
\frametitlecpp[17]{Nested namespaces}
162
- Easier way to declare nested namespaces
163
- \begin{alertblock}{\cpp98}
+ \begin{alertblock}{\cpp98: Old way to declare nested namespaces}
164
\begin{cppcode*}{}
165
namespace A {
166
namespace B {
@@ -171,13 +170,18 @@
171
170
}
172
\end{cppcode*}
173
\end{alertblock}
174
- \begin{exampleblock}{\cpp17}
+ \begin{exampleblock}{\cpp17: Nested declaration}
175
176
namespace A::B::C {
177
//...
178
179
180
\end{exampleblock}
+ \begin{exampleblock}{\cpp17: Namespace alias}
181
+ \begin{cppcode*}{}
182
+ namespace ABC = A::B::C;
183
+ \end{cppcode*}
184
+ \end{exampleblock}
185
\end{frame}
186
187
\begin{advanced}
0 commit comments