我在头文件中收到此错误:
error: expected initializer before ‘<’ token
class MyEntity;
typedef std::map<uint16,MyEntity*> myList_t;
#include <list>
#include <map>
typedef unsigned int uint32;
最佳答案
有一个名为map的宏正在引起冲突。
关于c++ - C++ map : expected initializer before ‘<’ token,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6558697/