2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

Bug fix, thanks to "Daniel Paull" <dlp@fractaltechnologies.com> for

reporting it.


[SVN r16698]
This commit is contained in:
Dave Abrahams
2002-12-24 04:49:33 +00:00
parent eac0412d18
commit aa58e21bda

View File

@@ -52,8 +52,11 @@ namespace boost { namespace python { namespace detail {
// return mpl::list<RT, ClassT&, T0...TN>();
// }
//
// These functions extract the return type, class (for member functions)
// and arguments of the input signature and stuffs them in an mpl::list.
// These functions extract the return type, class (for member
// functions) and arguments of the input signature and stuffs them in
// an mpl::list. Note that cv-qualification is dropped from the
// target class; that is a necessary sacrifice to ensure that an
// lvalue from_python converter is used.
//
///////////////////////////////////////////////////////////////////////////////
@@ -102,11 +105,11 @@ get_signature(RT(*)(BOOST_PP_ENUM_PARAMS_Z(1, N, T)))
template <
class RT, class ClassT BOOST_PP_ENUM_TRAILING_PARAMS_Z(1, N, class T)>
inline BOOST_PYTHON_LIST_INC(BOOST_PP_INC(N))<
RT, ClassT Q& BOOST_PP_ENUM_TRAILING_PARAMS_Z(1, N, T)>
RT, ClassT& BOOST_PP_ENUM_TRAILING_PARAMS_Z(1, N, T)>
get_signature(RT(ClassT::*)(BOOST_PP_ENUM_PARAMS_Z(1, N, T)) Q)
{
return BOOST_PYTHON_LIST_INC(BOOST_PP_INC(N))<
RT, ClassT Q & BOOST_PP_ENUM_TRAILING_PARAMS_Z(1, N, T)
RT, ClassT& BOOST_PP_ENUM_TRAILING_PARAMS_Z(1, N, T)
>();
}