看到一个例子中有以下一行
virtual size_t Size() const=0;
编译的时候,居然死菜
ArrayStructure.hpp:27: ISO C++ forbids declaration of `size_t' with no type
ArrayStructure.hpp:27: `size_t' declared as a `virtual' field
ArrayStructure.hpp:27: syntax error before `(' token
请问何解?
谢谢