Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/boost/python/numeric.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class array : public aux::array_base
{}
# define BOOST_PP_LOCAL_LIMITS (1, 7)
# include BOOST_PP_LOCAL_ITERATE()
# undef BOOST_PYTHON_AS_OBJECT
# undef BOOST_PYTHON_ENUM_AS_OBJECT

static BOOST_PYTHON_DECL void set_module_and_type(char const* package_name = 0, char const* type_attribute_name = 0);
static BOOST_PYTHON_DECL std::string get_module_name();
Expand Down
2 changes: 0 additions & 2 deletions src/numeric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,12 @@ namespace aux
return downcast<PyTypeObject>(array_type.get());
}

# define BOOST_PYTHON_AS_OBJECT(z, n, _) object(x##n)
# define BOOST_PP_LOCAL_MACRO(n) \
array_base::array_base(BOOST_PP_ENUM_PARAMS(n, object const& x)) \
: object(demand_array_function()(BOOST_PP_ENUM_PARAMS(n, x))) \
{}
# define BOOST_PP_LOCAL_LIMITS (1, 6)
# include BOOST_PP_LOCAL_ITERATE()
# undef BOOST_PYTHON_AS_OBJECT

array_base::array_base(BOOST_PP_ENUM_PARAMS(7, object const& x))
: object(demand_array_function()(BOOST_PP_ENUM_PARAMS(7, x)))
Expand Down