diff --git a/include/boost/python/object/inheritance.hpp b/include/boost/python/object/inheritance.hpp index 88b556ff..de8cae43 100644 --- a/include/boost/python/object/inheritance.hpp +++ b/include/boost/python/object/inheritance.hpp @@ -10,6 +10,7 @@ # include # include # include +# include namespace boost { namespace python { namespace objects { @@ -30,25 +31,6 @@ BOOST_PYTHON_DECL void* find_static_type(void* p, class_id src, class_id dst); BOOST_PYTHON_DECL void* find_dynamic_type(void* p, class_id src, class_id dst); -// is_polymorphic test from John Maddock -template -struct is_polymorphic -{ - struct d1 : public T - { - d1(); - char padding[256]; - }; - struct d2 : public T - { - d2(); - virtual ~d2(); - virtual void foo(); - char padding[256]; - }; - BOOST_STATIC_CONSTANT(bool, value = (sizeof(d2) == sizeof(d1))); -}; - // // a generator with an execute() function which, given a source type // and a pointer to an object of that type, returns its most-derived