From 9fa3d5c8920211ef0950cab6daed23b4951e5ed9 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 30 Jul 2003 12:20:30 +0000 Subject: [PATCH] Backport bugfix from trunk [SVN r19362] --- include/boost/python/raw_function.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/python/raw_function.hpp b/include/boost/python/raw_function.hpp index 3a28d127..434d0389 100755 --- a/include/boost/python/raw_function.hpp +++ b/include/boost/python/raw_function.hpp @@ -25,7 +25,10 @@ namespace detail { return incref( object( - f(tuple(borrowed_reference(args)), dict(borrowed_reference(keywords))) + f( + tuple(borrowed_reference(args)) + , keywords ? dict(borrowed_reference(keywords)) : dict() + ) ).ptr() ); }