Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Warning (level 4) C4481

Error Message

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);
};

Community Additions

ADD
Show:
© 2015 Microsoft