解决boost包含boost/algorithm/string.hpp造成的__int64错误
来源:岁月联盟
时间:2011-12-12
使用boost的string库进行跨平台操作,包含文件
#include <boost/algorithm/string.hpp>
结果遇到编译错误
error C2632: '__int64' followed by '__int64' is illegal
发现在config-win32.h已经定义过宏,在boost/cstdint.hpp又使用了一次typedef, 因此将包含修改为:
#undef int64_t
#include <boost/algorithm/string.hpp>
问题解决
下一篇:VS2008快捷键使用技巧