boostorg / boostorg/python

MSVC iso646.h conflict in boost/python/operators.hpp

Đang mở
#67 2 bình luận 1 reaction 0 người được giao Xem trên GitHub
build logic
Ngôn ngữ chính
C++
Star
537
Fork
223
Merge trung bình
11 giờ 22 phút
Pull request đã merge (30 ngày)
2

Mô tả

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)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.