问题标签 [msvc14]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - 自 boost 1.74: 编译错误使用 boost-asio 和 intel-18.0-vc14 构建代码
intel-18.0-vc14
我在 x64 版本中使用 VS 2015(工具集)使用 Intel c++ 2018(更新 2)构建了 boost 1.74当我尝试构建将 ASIO 与带有 VS2015 集成的英特尔 c++ 编译器一起使用的代码时,我收到大量编译错误。
当我尝试使用 VS 2015 构建相同的代码时,它编译得很好。
以下代码无法编译:
带有以下错误消息:
如果我定义
BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT
上面的示例编译。但以下示例代码没有:带有错误消息(我在下面发布了完整的错误消息):
问题:
- 如何在我的示例中修改上述签名以更新我们的旧代码以使用 boost 1.74?
- 还是我需要定义一些编译定义来获得向后兼容的行为?
- 这是编译器检测中的一个错误(在 boost 或 asio 中),还是这些年来我们很幸运并且需要使用 intel 编译器构建 boost 才能兼容?