【发布时间】:2012-04-23 17:36:20
【问题描述】:
为什么下面的代码会使编译器崩溃?
#include <iostream>
#include <string>
#include <map>
class test{
public:
template <typename T>
std::map<std::string, T> stuff;
};
int main(int argc, char* argv[])
{
test peanuts;
return 0;
}
是编译器出了问题还是什么?
【问题讨论】:
标签: c++ class templates visual-c++ map