Compiler Error C2618 (Windows CE 5.0)

Send Feedback

local classes cannot have base classes

A local class cannot have a base class, even if the base class itself has file scope.

The following example shows ways this error might occur.

class A { };
void f()
{
    class B : public A {};   // error
}

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.