From 3590a3589d541cf0778aae21c890c1f30b18fc4c Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 1 Jan 2004 12:46:04 +0000 Subject: [PATCH] Fix 2-phase lookup bug [SVN r21442] --- 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