diff --git a/include/boost/python/detail/defaults_def.hpp b/include/boost/python/detail/defaults_def.hpp index 16cdd55e..2b7f1375 100644 --- a/include/boost/python/detail/defaults_def.hpp +++ b/include/boost/python/detail/defaults_def.hpp @@ -144,7 +144,7 @@ namespace detail { BOOST_STATIC_ASSERT( (stubs_type::max_args + 1) <= boost::mpl::size::value); - typedef stubs_type::template gen gen_type; + typedef typename stubs_type::template gen gen_type; define_with_defaults_helper::def (name, gen_type(), holder, doc); }