error:‘>>‘ should be ‘> >‘ within a nested template argument list

编译时出现:error: '>>' should be '> >' within a nested template argument list错误。

错误原因:

使用C++11之前标准的编译器会将">>“视为移位符号

解决方法:

在'>>'中间加一个空格变成'> >'即可。

你可能感兴趣的:(C++基础,c++)