使用BOOST库 多线程ThreadPool

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014489699/article/details/89960090

编译错误: “TIME_UTC was not declared in this scope”
原因:
boost版本在1.50后,将该TIME_UTC这个名字修改为TIME_UTC_,
只需要将task_adaptors.hpp中的TIME_UTC修改为boost::TIME_UTC_即可.
修改名字的原因是C++ 11定义了TIME_UTC这个宏,为了避免冲突需要作此修改。

猜你喜欢

转载自blog.csdn.net/u014489699/article/details/89960090