Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 915 Bytes

compiler-warning-level-4-c4481.md

File metadata and controls

34 lines (26 loc) · 915 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Warning (level 4) C4481
Compiler Warning (level 4) C4481
11/04/2016
C4481
C4481
7bfd4e0c-b452-4e6c-b7c4-ac5cc93fe4ea

Compiler Warning (level 4) C4481

nonstandard extension used: override specifier 'keyword'

A keyword was used that is not in the C++ standard, for example, one of the override specifiers that also works under /clr. For more information, see,

Example

The following sample generates C4481.

// C4481.cpp
// compile with: /W4 /c
class B {
   virtual void f(unsigned);
};

class C : B {
   void f(unsigned) override;   // C4481
   void f2(unsigned);
};