### warn_hidevirtual

Controls the recognition of a non-virtual member function that hides a virtual function in a superclass.

##### Syntax

#pragma warn_hidevirtual on | off | reset

##### Targets

All platforms.

##### Remarks

If you enable this pragma, the compiler issues a warning if you declare a non-virtual member function that hides a virtual function in a superclass. For more information about this warning, see “Hidden Virtual Functions”. The ISO C++ Standard does not require this pragma.

NOTE A warning normally indicates that the pragma name is not recognized, but an error indicates either a syntax problem or that the pragma is not valid in the given context.

This pragma corresponds to the Hidden Virtual Functions setting . To check this setting, use __option (warn_hidevirtual). The default settings is off.