error C2653: 'list<class CSomething*,class std::allocator<class CSomething*> >'...解决方法

来源:互联网 发布:js pop shift 编辑:程序博客网 时间:2024/06/06 12:26

error C2653: 'list<class CSomething*,class std::allocator<class CSomething*> >' : is not a class or namespace name

原因为未引用命名空间,list的命名空间为std

加入:using namespace std;