MSVC iso646.h conflict in boost/python/operators.hpp
未关闭
build logic
- 主要语言
- C++
- 星标
- 537
- 派生
- 223
- 平均合并
- 11 小时 22 分钟
- 30 天内合并 PR
- 2
描述
MSVC includes iso646.h under various circumstances, which is easily worked around and is actually seen elsewhere in MPL (Boost issue https://svn.boost.org/trac/boost/ticket/3018). This applies strictly to MSVC, and when iso646.h is included from various means. The trac specifically said use github for Boost.Python related issues, so here I am.
iso646.h defines various bitwise macros which are conflicting with the python operators (or, and, xor).
This is easily fixed with prefix/postfix push_macro and pop_macro's for the appropriate functions.
I have attached a diff against 1.61.
[operators.patch.txt](https://github.com/boostorg/python/files/267087/operators.patch.txt)
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。