编译器错误 C2516

“name”:是非法基类

该类派生自 typedef 语句定义的类型名称。

以下示例生成 C2516:

// C2516.cpp
typedef unsigned long ulong;
class C : public ulong {}; // C2516