From 2bb9bbbaa9dd3987c9b8c42fdaaa40124b807a69 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 18 Nov 2000 14:50:04 +0000 Subject: [PATCH] Changed non-type template parameter int to long in operators declaration [SVN r8253] --- class_wrapper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }