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 5822cbc commit bfe2cd8Copy full SHA for bfe2cd8
docs/error-messages/compiler-errors-2/compiler-error-c2583.md
@@ -16,17 +16,16 @@ A [constructor](../../cpp/constructors-cpp.md) or [destructor](../../cpp/destruc
16
17
## Example
18
19
-The following sample generates C2583:
+The following example generates C2583:
20
21
```cpp
22
// C2583.cpp
23
// compile with: /c
24
-class A {
25
-public:
26
- int i;
27
- A() const; // C2583
+struct S
+{
+ S() const {} // C2583
28
29
- // try the following line instead
30
- // A();
+ // Try the following line instead:
+ // S() {}
31
};
32
```
0 commit comments