From 3a3f5631b9ebb2f65fda2d6cdf986a8b2e85efad Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 1 Jan 2004 12:46:39 +0000 Subject: [PATCH] merged from trunk [SVN r21443] --- include/boost/python/args.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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