error C2665: 'operator new' : none of the 5 overloads could convert all the argument types
據說是因為STL與DEBUG NEW運算符的沖突(影響list、vector等)
解決方法1:注釋掉以下代碼:
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
解決方法2:
将:代碼中的#include <vector>移到stdafx.h的開頭,也就是#program once的後面。
兩種方法都可以。