作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我偶然发现一些信息表明 boost::xtime_get()
自 boost 1.34 以来已被弃用。真的吗?如果是这样,我在哪里可以找到这方面的权威声明?
最佳答案
不完全是;它自 1.35 以来已被弃用。
对于权威声明,我会求助于 1.35 documentation for Boost.Thread ,特别是标题为 Changes since boost 1.34 的部分:
boost::xtime
is supported for backwards compatibility only.
至于发生这种情况的原因,同一个要点提到 DateTime 库用于超时。在 1.34 中,xtime
被记录为临时措施:
[...] it is expected that [
xtime
] (or some other time library) will be provided in Boost as a separate library, at which time Boost.Thread will deprecate its own implementation.
在 Boost 1.35 中,DateTime 变成了那个单独的库,因此 Boost.Thread 弃用了它的实现。
关于c++ - `boost::xtime_get` 是否已弃用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54682117/
我是一名优秀的程序员,十分优秀!