这是 log.h
文件中的代码:
struct SUCC_CODE{
static const int RECOGNIZER_OK = 0;
};
log.h
文件中的上述代码抛出编译错误:
Type name does not allow storage class to be specified
最佳答案
结构成员不能是static
。删除该说明符,编译器应该停止提示。 This question说明它是 C++ 中的有效说明符。
关于ios - 类型名不允许指定存储类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27220758/