This documentation is archived and is not being maintained.

Compiler Error C2433

'identifier' : 'modifier' not permitted on data declarations

The friend, virtual, and inline modifiers cannot be used for data declarations.

The following sample generates C2433.

// C2433.cpp
class C{};

int main() {
   inline C c;   // C2433
}
Show: