Skip to content

Commit ce2e9de

Browse files
committed
fixed case where function has all default arguments, also added a test in defaults.cpp
[SVN r15165]
1 parent 4d53fb9 commit ce2e9de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/python/detail/defaults_def.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ struct define_stub_function {};
199199
>::type stubs_type;
200200

201201
BOOST_STATIC_ASSERT(
202-
(stubs_type::max_args + 1) <=
202+
(stubs_type::max_args) <=
203203
boost::python::detail::type_list_size<SigT>::value);
204204

205205
typedef typename stubs_type::template gen<SigT> gen_type;

0 commit comments

Comments
 (0)