我刚才
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
答案 0 :(得分:3)
您是否正确编译?
试试这个:
g++ -std=c++11 -o program program.cpp