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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user