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

back_reference<> uses object instead of handle<>

[SVN r14600]
This commit is contained in:
Dave Abrahams
2002-07-25 15:20:06 +00:00
parent 8763fd1c53
commit 30ef9c6418
3 changed files with 10 additions and 8 deletions

View File

@@ -75,9 +75,9 @@ namespace boost { namespace python
}}
// prove that back_references get initialized with the right PyObject*
PyObject* y_identity(back_reference<Y const&> y)
object y_identity(back_reference<Y const&> y)
{
return y.reference().release();
return y.source();
}
// prove that back_references contain the right value