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

reference<> => handle<>

[SVN r14136]
This commit is contained in:
Dave Abrahams
2002-06-12 21:59:17 +00:00
parent 0d58869d6e
commit 366ee6d24b
36 changed files with 1264 additions and 293 deletions

View File

@@ -6,7 +6,7 @@
#include <boost/python/object/iterator_core.hpp>
#include <boost/python/object/function.hpp>
#include <boost/python/reference.hpp>
#include <boost/python/handle.hpp>
#include <boost/bind.hpp>
namespace boost { namespace python { namespace objects {
@@ -18,9 +18,9 @@ static PyObject* identity(PyObject* args_, PyObject*)
return x;
}
BOOST_PYTHON_DECL ref identity_function()
BOOST_PYTHON_DECL handle<> identity_function()
{
static ref result(new objects::function(py_function(&identity), 1));
static handle<> result(new objects::function(py_function(&identity), 1));
return result;
}