Std::map too few template arguments

 

在上述的代码中,红色波浪线的部分编译的时候报错:

error C2976: 'std::map' : too few template arguments

换成std::map<std::string, std::string>也是一样的错误.

怎么回事那?

[解决方法]

包含 map就可以了.

#include <map>

猜你喜欢

转载自www.cnblogs.com/time-is-life/p/9071855.html