diff --git a/include/boost/python.hpp b/include/boost/python.hpp index ae49abaf..11067c17 100644 --- a/include/boost/python.hpp +++ b/include/boost/python.hpp @@ -53,6 +53,7 @@ # include # include # include +# include # include # include # include @@ -61,7 +62,9 @@ # include # include # include +# include # include +# include # include # include # include diff --git a/include/boost/python/class.hpp b/include/boost/python/class.hpp index 0ec86f43..253667bb 100644 --- a/include/boost/python/class.hpp +++ b/include/boost/python/class.hpp @@ -138,7 +138,8 @@ namespace detail static void must_be_derived_class_member(Default const&) { - typedef typename assertion > >::failed test0; + // https://svn.boost.org/trac/boost/ticket/5803 + //typedef typename assertion > >::failed test0; # if !BOOST_WORKAROUND(__MWERKS__, <= 0x2407) typedef typename assertion >::failed test1; # endif diff --git a/include/boost/python/detail/make_keyword_range_fn.hpp b/include/boost/python/detail/make_keyword_range_fn.hpp index 634bbb99..c4795cf8 100644 --- a/include/boost/python/detail/make_keyword_range_fn.hpp +++ b/include/boost/python/detail/make_keyword_range_fn.hpp @@ -57,7 +57,7 @@ object make_keyword_range_constructor( , Holder* = 0 , ArgList* = 0, Arity* = 0) { -#if !defined( BOOST_PYTHON_NO_PY_SIGNATURES) && defined( BOOST_PYTHON_PY_SYGNATURES_PROPER_INIT_SELF_TYPE) +#if !defined( BOOST_PYTHON_NO_PY_SIGNATURES) && defined( BOOST_PYTHON_PY_SIGNATURES_PROPER_INIT_SELF_TYPE) python_class::register_(); #endif return detail::make_keyword_range_function( diff --git a/include/boost/python/object/class_metadata.hpp b/include/boost/python/object/class_metadata.hpp index 0738bbe3..155ae35d 100644 --- a/include/boost/python/object/class_metadata.hpp +++ b/include/boost/python/object/class_metadata.hpp @@ -238,7 +238,7 @@ struct class_metadata // inline static void maybe_register_pointer_to_python(...) {} -#ifndef BOOST_PYTHON_NO_PY_SYGNATURES +#ifndef BOOST_PYTHON_NO_PY_SIGNATURES inline static void maybe_register_pointer_to_python(void*,void*,mpl::true_*) { objects::copy_class_object(python::type_id(), python::type_id >()); @@ -255,7 +255,7 @@ struct class_metadata , make_ptr_instance > >() ); -#ifndef BOOST_PYTHON_NO_PY_SYGNATURES +#ifndef BOOST_PYTHON_NO_PY_SIGNATURES // explicit qualification of type_id makes msvc6 happy objects::copy_class_object(python::type_id(), python::type_id()); #endif @@ -270,7 +270,7 @@ struct class_metadata inline static void maybe_register_class_to_python(T2*, mpl::false_) { python::detail::force_instantiate(class_cref_wrapper >()); -#ifndef BOOST_PYTHON_NO_PY_SYGNATURES +#ifndef BOOST_PYTHON_NO_PY_SIGNATURES // explicit qualification of type_id makes msvc6 happy objects::copy_class_object(python::type_id(), python::type_id()); #endif diff --git a/include/boost/python/object/make_holder.hpp b/include/boost/python/object/make_holder.hpp index eb3c603d..0d54dd9f 100644 --- a/include/boost/python/object/make_holder.hpp +++ b/include/boost/python/object/make_holder.hpp @@ -12,7 +12,7 @@ # include # include -#if !defined( BOOST_PYTHON_NO_PY_SIGNATURES) && defined( BOOST_PYTHON_PY_SYGNATURES_PROPER_INIT_SELF_TYPE) +#if !defined( BOOST_PYTHON_NO_PY_SIGNATURES) && defined( BOOST_PYTHON_PY_SIGNATURES_PROPER_INIT_SELF_TYPE) # include #endif @@ -81,7 +81,7 @@ struct make_holder # endif static void execute( -#if !defined( BOOST_PYTHON_NO_PY_SIGNATURES) && defined( BOOST_PYTHON_PY_SYGNATURES_PROPER_INIT_SELF_TYPE) +#if !defined( BOOST_PYTHON_NO_PY_SIGNATURES) && defined( BOOST_PYTHON_PY_SIGNATURES_PROPER_INIT_SELF_TYPE) boost::python::detail::python_class *p #else PyObject *p diff --git a/include/boost/python/override.hpp b/include/boost/python/override.hpp index d5a95b83..39714257 100644 --- a/include/boost/python/override.hpp +++ b/include/boost/python/override.hpp @@ -77,7 +77,7 @@ namespace detail template T unchecked(type* = 0) { - return extract(m_obj)(); + return extract(m_obj.get())(); } private: mutable handle<> m_obj; diff --git a/include/boost/python/slice.hpp b/include/boost/python/slice.hpp index 382ceb81..4fc62418 100644 --- a/include/boost/python/slice.hpp +++ b/include/boost/python/slice.hpp @@ -30,7 +30,7 @@ namespace detail // that created this slice, than that parameter is None here, and compares // equal to a default-constructed boost::python::object. // If a user-defined type wishes to support slicing, then support for the - // special meaning associated with negative indicies is up to the user. + // special meaning associated with negative indices is up to the user. object start() const; object stop() const; object step() const; @@ -63,7 +63,7 @@ class slice : public detail::slice_base // The following algorithm is intended to automate the process of // determining a slice range when you want to fully support negative - // indicies and non-singular step sizes. Its functionallity is simmilar to + // indices and non-singular step sizes. Its functionallity is simmilar to // PySlice_GetIndicesEx() in the Python/C API, but tailored for C++ users. // This template returns a slice::range struct that, when used in the // following iterative loop, will traverse a slice of the function's @@ -110,7 +110,7 @@ class slice : public detail::slice_base template slice::range - get_indicies( const RandomAccessIterator& begin, + get_indices( const RandomAccessIterator& begin, const RandomAccessIterator& end) const { // This is based loosely on PySlice_GetIndicesEx(), but it has been @@ -240,6 +240,16 @@ class slice : public detail::slice_base return ret; } + + // Incorrect spelling. DO NOT USE. Only here for backward compatibility. + // Corrected 2011-06-14. + template + slice::range + get_indicies( const RandomAccessIterator& begin, + const RandomAccessIterator& end) const + { + get_indices(begin, end); + } public: // This declaration, in conjunction with the specialization of