0
点赞
收藏
分享

微信扫一扫

Template within template: why “`>>' should be `> >' within a nested template argument list” 解决方法


如果直接这样写:

​vector<pair<string, int>> word;​

gcc编译器会把">>"当成operator报错:boost vector  error: ‘>>’ should be ‘> >’ within a nested template argument list

正确做法是加上空格: “ ”

 

​vector<pair<string, int> > word;​

举报

相关推荐

0 条评论