From 63a4d2a3136c16c6d1cd4bd870babbcf1b955314 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 12 Nov 2000 20:52:41 +0000 Subject: [PATCH] changed to use new conversion namespace macros [SVN r8181] --- extclass.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/extclass.h b/extclass.h index 8e3ec293..80ce19e9 100644 --- a/extclass.h +++ b/extclass.h @@ -123,9 +123,9 @@ class ClassRegistry static std::vector static_derived_class_info; }; -#ifdef PY_NO_INLINE_FRIENDS_IN_NAMESPACE // back to global namespace for this GCC bug } -#endif + +PY_BEGIN_CONVERSION_NAMESPACE // This class' only job is to define from_python and to_python converters for T // and U. T is the class the user really intends to wrap. U is a class derived @@ -289,10 +289,11 @@ PyObject* to_python(const T& x) return py_extension_class_converters(py::Type()).to_python(x); } -#ifdef PY_NO_INLINE_FRIENDS_IN_NAMESPACE // back from global namespace for this GCC bug +PY_END_CONVERSION_NAMESPACE + namespace py { -using ::PyExtensionClassConverters; -#endif + +PY_IMPORT_CONVERSION(PyExtensionClassConverters); template class InstanceHolder;