我正在学习 boost multiIndex 并且正在关注本教程。
问题是我无法使用 Visual Studio 2008 编译散列索引部分(该页面上的第一个代码块)中的代码 :(
每次我尝试时,c++ 编译器都会抱怨:
main.cpp(19) : error C2143: syntax error : missing ';' before '<'
main.cpp(19) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
这些错误发生在上面显示的代码块中第 19 行的 typedef 中。有人可以帮我解释一下吗?