diff --git a/include/boost/python/detail/defaults_def.hpp b/include/boost/python/detail/defaults_def.hpp index cc13d314..bf2a4fb9 100644 --- a/include/boost/python/detail/defaults_def.hpp +++ b/include/boost/python/detail/defaults_def.hpp @@ -199,7 +199,7 @@ struct define_stub_function {}; >::type stubs_type; BOOST_STATIC_ASSERT( - (stubs_type::max_args + 1) <= + (stubs_type::max_args) <= boost::python::detail::type_list_size::value); typedef typename stubs_type::template gen gen_type;