From e65ca4ccac7bfa510f10d011d85502c108b1b64d Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 16 Dec 2001 17:58:23 +0000 Subject: [PATCH] Python 1.5 compatibility fixes [SVN r12072] --- test/comprehensive.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/comprehensive.cpp b/test/comprehensive.cpp index 61f56407..d25b131a 100644 --- a/test/comprehensive.cpp +++ b/test/comprehensive.cpp @@ -1093,6 +1093,7 @@ void init_module(boost::python::module_builder& m) // export non-operator function as heterogeneous reverse-argument operator int_class.def(&rmul, "__rmul__"); +#if PYTHON_API_VERSION >= 1010 // inplace operators. int_class.def(&int_iadd, "__iadd__"); int_class.def(&int_isub, "__isub__"); @@ -1105,6 +1106,7 @@ void init_module(boost::python::module_builder& m) int_class.def(&int_iand, "__iand__"); int_class.def(&int_ior, "__ior__"); int_class.def(&int_ixor, "__ixor__"); +#endif boost::python::class_builder enum_owner(m, "EnumOwner");