diff --git a/include/boost/python/args.hpp b/include/boost/python/args.hpp index c7363dbe..4dc4055e 100644 --- a/include/boost/python/args.hpp +++ b/include/boost/python/args.hpp @@ -36,9 +36,20 @@ typedef detail::keywords<1> arg; namespace detail { + // A hack to simplify code by making arg a dependent name + template + struct dependent_arg + { + typedef arg type; + }; + template struct keywords_base { + typedef typename + dependent_arg::type + arg; + BOOST_STATIC_CONSTANT(std::size_t, size = nkeywords); keyword_range range() const