【发布时间】:2017-09-05 11:40:51
【问题描述】:
有一个类似的问题here 所以这个问题的答案可能可以合并或其他什么。
我正在使用最新的 Visual Studio 2017 版本,当我使用 Boost 库进行编译时,我收到一条警告。发出警告的代码:
//
// last known and checked version is 19.10.25017 (VC++ 2017):
#if (_MSC_VER > 1910)
# if defined(BOOST_ASSERT_CONFIG)
# error "Unknown compiler version - please run the configure tests and report the results"
# else
# pragma message("Unknown compiler version - please run the configure tests and report the results")
# endif
#endif
在我的电脑上_MSC_VER 是1911。我正在使用最新的 1.65 版本的 Boost。这很容易解决吗?
谢谢。
【问题讨论】:
-
根据您所指的问题,我猜这就像将 1910 更改为 1911 一样简单?
-
@DanMašek 谢谢。我想知道是否做出这样的假设来更改代码是否绕过了任何需要正式对 Boost 进行的审查工作?
-
这是一个已经合并到主干的补丁:github.com/boostorg/config/pull/179
-
@DanMašek 酷!我还看到 1.65.1 将在接下来的几天内发布...... :)