Compiler Error C2498

'function' 'novtable' can only be applied to class declarations

For example, using __declspec(novtable) with a function, as follows, is illegal:

void __declspec(novtable) f() { }