mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 08:32:02 +00:00
work around weird macro substitution issue on GCC (fixes issue #7)
This commit is contained in:
parent
fa1bfb2ec7
commit
5db63fb746
@ -134,7 +134,7 @@ PYBIND11_INPLACE_OPERATOR(ior, operator|=, l |= r)
|
|||||||
PYBIND11_UNARY_OPERATOR(neg, operator-, -l)
|
PYBIND11_UNARY_OPERATOR(neg, operator-, -l)
|
||||||
PYBIND11_UNARY_OPERATOR(pos, operator+, +l)
|
PYBIND11_UNARY_OPERATOR(pos, operator+, +l)
|
||||||
PYBIND11_UNARY_OPERATOR(abs, abs, std::abs(l))
|
PYBIND11_UNARY_OPERATOR(abs, abs, std::abs(l))
|
||||||
PYBIND11_UNARY_OPERATOR(invert, operator~, ~l)
|
PYBIND11_UNARY_OPERATOR(invert, operator~, (~l))
|
||||||
PYBIND11_UNARY_OPERATOR(bool, operator!, !!l)
|
PYBIND11_UNARY_OPERATOR(bool, operator!, !!l)
|
||||||
PYBIND11_UNARY_OPERATOR(int, int_, (int) l)
|
PYBIND11_UNARY_OPERATOR(int, int_, (int) l)
|
||||||
PYBIND11_UNARY_OPERATOR(float, float_, (double) l)
|
PYBIND11_UNARY_OPERATOR(float, float_, (double) l)
|
||||||
|
Loading…
Reference in New Issue
Block a user