generate more compact binaries
diff --git a/include/pybind/operators.h b/include/pybind/operators.h
index 9e3011a..c2c1338 100644
--- a/include/pybind/operators.h
+++ b/include/pybind/operators.h
@@ -17,13 +17,12 @@
/// Enumeration with all supported operator types
enum op_id : int {
- op_add, op_sub, op_mul, op_div, op_mod, op_divmod, op_pow,
- op_lshift, op_rshift, op_and, op_xor, op_or, op_neg,
- op_pos, op_abs, op_invert, op_int, op_long, op_float,
- op_str, op_cmp, op_gt, op_ge, op_lt, op_le, op_eq, op_ne,
- op_iadd, op_isub, op_imul, op_idiv, op_imod, op_ilshift,
- op_irshift, op_iand, op_ixor, op_ior, op_complex, op_bool,
- op_nonzero, op_repr, op_truediv
+ op_add, op_sub, op_mul, op_div, op_mod, op_divmod, op_pow, op_lshift,
+ op_rshift, op_and, op_xor, op_or, op_neg, op_pos, op_abs, op_invert,
+ op_int, op_long, op_float, op_str, op_cmp, op_gt, op_ge, op_lt, op_le,
+ op_eq, op_ne, op_iadd, op_isub, op_imul, op_idiv, op_imod, op_ilshift,
+ op_irshift, op_iand, op_ixor, op_ior, op_complex, op_bool, op_nonzero,
+ op_repr, op_truediv
};
enum op_type : int {
@@ -33,12 +32,11 @@
};
struct self_t { };
+static const self_t self = self_t();
/// Type for an unused type slot
struct undefined_t { };
-static const self_t self = self_t();
-
/// Don't warn about an unused variable
inline self_t __self() { return self; }
@@ -140,7 +138,6 @@
#undef PYBIND_BINARY_OPERATOR
#undef PYBIND_INPLACE_OPERATOR
#undef PYBIND_UNARY_OPERATOR
-
NAMESPACE_END(detail)
using detail::self;