- 论坛徽章:
- 0
|
如下是一个在其它平台上都可以通过的程序,为什么HP aCC 会报错误? 急死我了!
// -----------------------------
template< class T >;
class BuaAttrComm
{
};
// -----------------------------
template< class T >;
class BuaAttribute:public BuaAttrComm< class T>;
{
};
// -----------------------------
class BuaAttribute<int>;:public BuaAttrComm<int>;
{
};
// ------------------------------
int main()
{
}
Error 644: \"aa.cpp\", line 16 #
Template argument must be a class; was of type \'int\' instead.
class BuaAttribute< int >; : public BuaAttrComm< int >;
Error 445: \"aa.cpp\", line 16 #
Cannot recover from earlier errors.
class BuaAttribute< int >; : public BuaAttrComm< int >; |
|