diff --git a/class_wrapper.h b/class_wrapper.h index 6ed3fa13..0d8b650e 100644 --- a/class_wrapper.h +++ b/class_wrapper.h @@ -36,14 +36,14 @@ class ClassWrapper // (type of lhs: 'left', of rhs: 'right') // usage: foo_class.def(py::operators<(py::op_add | py::op_sub), Foo>(), // py::left_operand()); - template + template void def(operators o1, left_operand o2) { m_class->def(o1, o2); } // export heterogeneous operators (type of lhs: 'left', of rhs: 'right') // usage: foo_class.def(py::operators<(py::op_add | py::op_sub), Foo>(), // py::right_operand()); - template + template void def(operators o1, right_operand o2) { m_class->def(o1, o2); }