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

Better error reporting

[SVN r14448]
This commit is contained in:
Dave Abrahams
2002-07-14 13:04:27 +00:00
parent 5b803f00e1
commit 3ebe4c47ba
3 changed files with 17 additions and 11 deletions

View File

@@ -180,13 +180,13 @@ namespace detail
template <class T>
inline value_arg_to_python<T>::value_arg_to_python(T const& x)
: arg_to_python_base(&x, registered<T>::converters.to_python)
: arg_to_python_base(&x, registered<T>::converters)
{
}
template <class Ptr>
inline pointer_deep_arg_to_python<Ptr>::pointer_deep_arg_to_python(Ptr x)
: arg_to_python_base(x, registered_pointee<Ptr>::converters.to_python)
: arg_to_python_base(x, registered_pointee<Ptr>::converters)
{
detail::reject_raw_object_ptr((Ptr)0);
}

View File

@@ -11,6 +11,8 @@
namespace boost { namespace python { namespace converter {
struct registration;
namespace detail
{
struct BOOST_PYTHON_DECL arg_to_python_base
@@ -18,7 +20,7 @@ namespace detail
: handle<>
# endif
{
arg_to_python_base(void const volatile* source, to_python_function_t);
arg_to_python_base(void const volatile* source, registration const&);
# if defined(BOOST_MSVC) && BOOST_MSVC > 1300 && _MSC_FULL_VER <= 13102171
PyObject* get() const { return m_ptr.get(); }
PyObject* release() { return m_ptr.release(); }