2
爲什麼下面的代碼會使編譯器崩潰?MSVC 2010模板映射類崩潰編譯器
#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;
}
在編譯器中是否存在錯誤?