解决boost包含boost/algorithm/string.hpp造成的__int64错误

2014-11-24 00:11:55 · 作者: · 浏览: 24

使用boost的string库进行跨平台操作,包含文件

#include

结果遇到编译错误

error C2632: '__int64' followed by '__int64' is illegal

发现在config-win32.h已经定义过宏,在boost\cstdint.hpp又使用了一次typedef, 因此将包含修改为:

#undef int64_t

#include

问题解决

摘自 战魂小筑