使用boost的string庫進(jìn)行跨平臺(tái)操作,包含文件
#include <boost/algorithm/string.hpp>
結(jié)果遇到編譯錯(cuò)誤
error C2632: '__int64' followed by '__int64' is illegal
發(fā)現(xiàn)在config-win32.h已經(jīng)定義過宏,在boost\cstdint.hpp又使用了一次typedef, 因此將包含修改為:
#undef int64_t
#include <boost/algorithm/string.hpp>
問題解決