From 374b55be8ace4a4d0943e1e285caa490e0f59ad2 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 26 Sep 2002 12:13:47 +0000 Subject: [PATCH] IRIX workarounds, eliminate dead header [SVN r15526] --- include/boost/python/class.hpp | 11 ++++++----- include/boost/python/class_fwd.hpp | 7 ------- include/boost/python/numeric.hpp | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/include/boost/python/class.hpp b/include/boost/python/class.hpp index 26400e3e..ceeb516c 100644 --- a/include/boost/python/class.hpp +++ b/include/boost/python/class.hpp @@ -9,7 +9,6 @@ # include # include # include -# include # include @@ -38,6 +37,8 @@ namespace boost { namespace python { +enum no_init_t { no_init }; + namespace detail { // This function object is used with mpl::for_each to write the id @@ -218,7 +219,7 @@ class class_ : public objects::class_base // def(name, function) // def(name, function, policy) // def(name, function, doc_string) - // def(name, signature, stubs) + // def(name, signature, overloads) dispatch_def(&arg2, name, arg1, arg2); return *this; @@ -318,17 +319,17 @@ class class_ : public objects::class_base inline void register_() const; - template + template void dispatch_def( detail::overloads_base const*, char const* name, SigT sig, - StubsT const& stubs) + OverloadsT const& overloads) { // convert sig to a type_list (see detail::get_signature in signature.hpp) // before calling detail::define_with_defaults. detail::define_with_defaults( - name, stubs, *this, detail::get_signature(sig)); + name, overloads, *this, detail::get_signature(sig)); } template diff --git a/include/boost/python/class_fwd.hpp b/include/boost/python/class_fwd.hpp index 87f3ba32..8aaec6a6 100644 --- a/include/boost/python/class_fwd.hpp +++ b/include/boost/python/class_fwd.hpp @@ -6,16 +6,9 @@ #ifndef CLASS_FWD_DWA200222_HPP # define CLASS_FWD_DWA200222_HPP # include -# include -# include namespace boost { namespace python { -namespace detail -{ - struct empty_list; -} - template < class T // class being wrapped // arbitrarily-ordered optional arguments. Full qualification needed for MSVC6 diff --git a/include/boost/python/numeric.hpp b/include/boost/python/numeric.hpp index 1ef73439..df92bfbf 100644 --- a/include/boost/python/numeric.hpp +++ b/include/boost/python/numeric.hpp @@ -210,7 +210,7 @@ class array : public aux::array_base static BOOST_PYTHON_DECL void set_module_and_type(char const* package_name = 0, char const* type_attribute_name = 0); public: // implementation detail -- for internal use only - BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(array, array_base); + BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(array, base); }; } // namespace boost::python::numeric