Skip to content

Commit e25f5aa

Browse files
authored
Add blockquotes and improve C2574 error message
1 parent 4606e59 commit e25f5aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/error-messages/compiler-errors-2/compiler-error-c2574.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.assetid: 3e1c5c18-ee8b-4dbb-bfc0-d3b8991af71b
88
---
99
# Compiler Error C2574
1010

11-
'destructor' : cannot be declared static
11+
> '*function*': cannot be declared static
1212
1313
Neither destructors nor constructors can be declared **`static`**.
1414

docs/error-messages/compiler-errors-2/compiler-errors-c2500-through-c2599.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The articles in this section of the documentation explain a subset of the error
8989
|[Compiler error C2571](compiler-error-C2571.md)|'*identifier*': virtual function cannot be in union '*union*'|
9090
|[Compiler error C2572](compiler-error-C2572.md)|'*function*': redefinition of default argument: parameter *number*|
9191
|[Compiler error C2573](compiler-error-C2573.md)|'*class*': cannot delete pointers to objects of this type; the class has no non-placement overload for 'operator delete'. Use ::delete, or add 'operator delete(void*)' to the class|
92-
|[Compiler error C2574](compiler-error-C2574.md)|'*destructor*': cannot be declared static|
92+
|[Compiler error C2574](compiler-error-C2574.md)|'*function*': cannot be declared static|
9393
|[Compiler error C2575](compiler-error-C2575.md)|'*identifier*': only member functions and bases can be virtual|
9494
|Compiler error C2576|'*identifier*': cannot introduce a new virtual method as 'public'. Consider making the method non-virtual, or change the accessibility to 'internal' or 'protected private'|
9595
|[Compiler error C2577](compiler-error-C2577.md)|'*identifier*': a destructor/finalizer cannot have a return type|

0 commit comments

Comments
 (0)