Skip to content

Commit

Permalink
work around weird macro substitution issue on GCC (fixes issue #7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenzel Jakob committed Oct 22, 2015
1 parent fa1bfb2 commit 5db63fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/operators.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ PYBIND11_INPLACE_OPERATOR(ior, operator|=, l |= r)
PYBIND11_UNARY_OPERATOR(neg, operator-, -l)
PYBIND11_UNARY_OPERATOR(pos, operator+, +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(int, int_, (int) l)
PYBIND11_UNARY_OPERATOR(float, float_, (double) l)
Expand Down

0 comments on commit 5db63fb

Please sign in to comment.