为什么gcc 4.8.1在嵌套的模板列表中给我“>>应该是>>”错误?这不是在C ++ 11中修复的吗?

时间:2014-07-05 13:15:18

标签: c++ gcc c++11

我刚才

error: ‘>>’ should be ‘> >’ within a nested template argument list
  std::vector<std::pair<std::string, std::vector<std::string>>> AllConfiguration;

在C ++ 11中修复了这个问题吗?

gcc --version
gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

我在C ++ 11

1 个答案:

答案 0 :(得分:3)

您是否正确编译?

试试这个:

g++ -std=c++11 -o program program.cpp