| 67 | |
| 68 | template <class U> |
| 69 | inline bool |
| 70 | object_operators<U>::operator!() const |
| 71 | { |
| 72 | object_cref2 x = *static_cast<U const*>(this); |
| 73 | int is_true = PyObject_IsTrue(x.ptr()); |
| 74 | if (is_true < 0) throw_error_already_set(); |
| 75 | return !is_true; |
| 76 | } |
| 77 | |
| 78 | # define BOOST_PYTHON_COMPARE_OP(op, opid) \ |
| 79 | template <class L, class R> \ |