mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-04 06:23:30 +08: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…
x
Reference in New Issue
Block a user