boostorg / boostorg/python

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

Aberta
#67 2 comentários 1 reação 0 responsáveis Ver no GitHub
build logic
Linguagem predominante
C++
Estrelas
537
Forks
223
Merge médio
11h 22min
PRs com merge (30d)
2

Descrição

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)

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Start in boost/python/operators.hpp and compare the attached operators.patch.txt against the current implementation. Reproduce the issue with MSVC when iso646.h is included, then verify that the conflicting operator macros no longer break compilation.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
cpp
Domínio
backend
Tipo de issue
Bug
Dificuldade
2/5
Tempo estimado
1-3 horas
Status de atividade
Estagnada
Clareza
Claramente especificada
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.