【发布时间】:2011-07-10 23:10:13
【问题描述】:
我正在学习 boost multiIndex,我正在关注 this tutorial。
问题是我无法使用 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 中。有人可以帮我解释一下吗?
【问题讨论】:
标签: visual-studio-2008 visual-c++ boost boost-multi-index