Skip to content

Commit 3febfcc

Browse files
authored
Update compiler-warning-level-3-c4373.md
1 parent 6778a59 commit 3febfcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4373.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ helpviewer_keywords: ["C4373"]
1313

1414
Your application contains a method in a derived class that overrides a virtual method in a base class. The parameters in the overriding method differ by a [`const`](../../cpp/const-cpp.md) or [`volatile`](../../cpp/volatile-cpp.md) qualifier from the parameters of the virtual method.
1515

16-
Prior to Visual Studio 2008, the compiler would bind the function to the method in the base class. Later versions of the compiler ignore the **`const`** or **`volatile`** qualifier, bind the function to the method in the derived class, then issue warning **C4373**. The latter behavior conforms to the C++ standard.
16+
Before Visual Studio 2008, the compiler would bind the function to the method in the base class. Later versions of the compiler ignore the **`const`** or **`volatile`** qualifier, bind the function to the method in the derived class, then issue warning **C4373**. The latter behavior conforms to the C++ standard.
1717

1818
## Example
1919

20-
The following code example generates warning C4373. To resolve this issue, you can either make the override use the same CV-qualifiers as the base member function, or if you didn't intend to create an override, you can give the function in the derived class a different name.
20+
The following code example generates warning C4373. To resolve this issue, make the override use the same CV-qualifiers as the base member function. If you didn't intend to create an override, rename the function in the derived class.
2121

2222
```cpp
2323
// c4373.cpp

0 commit comments

Comments
 (0)