在MFC的工程里placement new 编译会出现error
error C2061: syntax error : identifier 'p' 等
原因是MFC的cpp重新定义了new
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
去掉就好了。试了好久...
在MFC的工程里placement new 编译会出现error
error C2061: syntax error : identifier 'p' 等
原因是MFC的cpp重新定义了new
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
去掉就好了。试了好久...