summaryrefslogtreecommitdiff
path: root/boost/python/lvalue_from_pytype.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/python/lvalue_from_pytype.hpp')
-rw-r--r--boost/python/lvalue_from_pytype.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/boost/python/lvalue_from_pytype.hpp b/boost/python/lvalue_from_pytype.hpp
index e15dfbbb85..59d31b89cf 100644
--- a/boost/python/lvalue_from_pytype.hpp
+++ b/boost/python/lvalue_from_pytype.hpp
@@ -13,6 +13,7 @@
# include <boost/python/type_id.hpp>
# include <boost/python/converter/registry.hpp>
# include <boost/python/detail/void_ptr.hpp>
+# include <boost/python/detail/type_traits.hpp>
namespace boost { namespace python {
@@ -35,7 +36,7 @@ namespace detail
{
static inline void* execute(PyObject* op)
{
- typedef typename boost::add_reference<U>::type param;
+ typedef typename add_lvalue_reference<U>::type param;
return &Extractor::execute(
boost::python::detail::void_ptr_to_reference(
op, (param(*)())0 )