Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 963 Bytes

compiler-warning-level-4-c4263.md

File metadata and controls

34 lines (27 loc) · 963 Bytes
description title ms.date f1_keywords helpviewer_keywords
Learn more about: Compiler Warning (level 4, off) C4263
Compiler Warning (level 4, off) C4263
11/04/2016
C4263
C4263

Compiler Warning (level 4, off) C4263

'function' : member function does not override any base class virtual member function

A class function definition has the same name as a virtual function in a base class but not the same number or type of arguments. This pattern effectively hides the virtual function in the base class.

This warning is off by default. For more information, see Compiler Warnings That Are Off by Default.

The following sample generates C4263:

// C4263.cpp
// compile with: /W4
#pragma warning(default:4263)
#pragma warning(default:4264)
class B {
public:
   virtual void func();
};

class D : public B {
   void func(int);   // C4263
};

int main() {
}