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 0f917d5 commit 1d2dfc2Copy full SHA for 1d2dfc2
docs/error-messages/compiler-errors-1/compiler-error-c2049.md
@@ -12,3 +12,21 @@ helpviewer_keywords: ["C2049"]
12
The **`inline`** keyword may be used on a namespace definition extension only if it was also used on the original namespace definition.
13
14
To resolve this issue, make the use of the **`inline`** specifier consistent across all parts of the namespace.
15
+
16
+The following sample generates C2049:
17
18
+```cpp
19
+// C2049.cpp
20
+namespace ns {}
21
22
+inline namespace ns {} // C2049
23
+```
24
25
+Possible resolution:
26
27
28
+// C2049b.cpp
29
30
31
32
0 commit comments