From ce2e9de6fbb68bfd56369041811bdd9b9e88eafd Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Wed, 4 Sep 2002 23:51:24 +0000 Subject: [PATCH] fixed case where function has all default arguments, also added a test in defaults.cpp [SVN r15165] --- include/boost/python/detail/defaults_def.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;