From ba86f516d847b41ff0945d4214620223b4e83ea6 Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Wed, 4 Sep 2002 21:58:21 +0000 Subject: [PATCH] Fixed case where member function has no arguments. [SVN r15160] --- include/boost/python/detail/defaults_gen.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/python/detail/defaults_gen.hpp b/include/boost/python/detail/defaults_gen.hpp index 9a43ed9b..b131269d 100644 --- a/include/boost/python/detail/defaults_gen.hpp +++ b/include/boost/python/detail/defaults_gen.hpp @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -107,7 +108,7 @@ struct func_stubs_base {}; #define BPL_IMPL_MEM_FUNC_WRAPPER_GEN(INDEX, DATA) \ static RT BOOST_PP_CAT(func_, INDEX) \ ( \ - ClassT& obj, \ + ClassT& obj BOOST_PP_COMMA_IF(INDEX) \ BOOST_PP_ENUM \ ( \ BOOST_PP_ADD(BOOST_PP_TUPLE_ELEM(3, 1, DATA), INDEX), \