如果直接这样写:
vector<pair<string, int>> word;
gcc编译器会把">>"当成operator报错:boost vector error: ‘>>’ should be ‘> >’ within a nested template argument list
正确做法是加上空格: “ ”
vector<pair<string, int> > word;
Template within template: why “`>>' should be `> >' within a nested template argument list” 解决方法
阅读 107
2022-09-08
如果直接这样写:
vector<pair<string, int>> word;
gcc编译器会把">>"当成operator报错:boost vector error: ‘>>’ should be ‘> >’ within a nested template argument list
正确做法是加上空格: “ ”
vector<pair<string, int> > word;
相关推荐
精彩评论(0)