1、copy的使用
1>f:\visual studio\vc\include\xutility(2230): error C4996:
‘std::_Copy_impl’: Function call with parameters that may be unsafe -
this call relies on the caller to check that the passed values are
correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See
documentation on how to use Visual C++ ‘Checked Iterators’ 1>
f:\visual studio\vc\include\xutility(2216): note:
参见“std::_Copy_impl”的声明
添加宏定义 #define _SCL_SECURE_NO_WARNINGS
2、内存大小
测试排序时,归并排序数据量大于20000000会出错
0x775fc762 (KernelBase.dll) 处有未经处理的异常: Microsoft C++ 异常:
std::bad_alloc,位于内存位置 0x00d3ed40 处
切换64位编译解决
3、中文字符
1>f:\visual studio\vc\include\sal.h(2381): error C2144: 语法错误:“int”的前面应有“;”
1>f:\visual studio\vc\include\sal.h(2381): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
排查中文字符。。。
……待添加