There was an error while loading. Please reload this page.
1 parent 7674c82 commit 3590a35Copy full SHA for 3590a35
1 file changed
include/boost/python/args.hpp
@@ -36,9 +36,20 @@ typedef detail::keywords<1> arg;
36
37
namespace detail
38
{
39
+ // A hack to simplify code by making arg a dependent name
40
+ template <std::size_t nkeywords>
41
+ struct dependent_arg
42
+ {
43
+ typedef arg type;
44
+ };
45
+
46
template <std::size_t nkeywords>
47
struct keywords_base
48
49
+ typedef typename
50
+ dependent_arg<nkeywords>::type
51
+ arg;
52
53
BOOST_STATIC_CONSTANT(std::size_t, size = nkeywords);
54
55
keyword_range range() const
0 commit comments