我想知道为什么 Git 存储库中缺少方法 boost::posix_time::to_time_t
,虽然 SVN 存储库中的 1.55 版本可用。
Git 1.56 posix_time 存储库,其中缺少 to_time_t
:
https://github.com/boostorg/date_time/blob/master/include/boost/date_time/posix_time/conversion.hpp
SVN 1.55 posix_time repo,其中 to_time_t
正确可用:
http://svn.boost.org/svn/boost/trunk/boost/date_time/posix_time/conversion.hpp
添加 to_time_t 的讨论链接: http://lists.boost.org/boost-commit/2013/05/46171.php
这个功能有什么替代品吗?
最佳答案
它在开发分支上 https://github.com/boostorg/date_time/blob/develop/include/boost/date_time/posix_time/conversion.hpp
具体而言,此提交是相关的:
Restored to_time_t() function removed by commit 6636f49. develop
commit ae536816ee0a8bf65d1c52dc7d2b548925fb1416 1 parent 805bf4d Lastique authored on May 31
关于c++ - Git 1.56 boost 存储库中缺少 boost::posix_time::to_time_t,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26301460/