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

Begin transition away from handle<>

[SVN r14602]
This commit is contained in:
Dave Abrahams
2002-07-25 16:29:30 +00:00
parent 30ef9c6418
commit ddb1236f2f
9 changed files with 77 additions and 74 deletions

View File

@@ -4,7 +4,7 @@
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#include <boost/python/object/function.hpp>
#include <boost/python/object/function_object.hpp>
#include <numeric>
#include <boost/python/errors.hpp>
#include <boost/python/str.hpp>
@@ -148,10 +148,8 @@ namespace
function* not_implemented_function()
{
static function* result = new function(py_function(&not_implemented_impl), 2, 3);
static handle<> keeper(result);
return result;
static object keeper(function_object(&not_implemented_impl, 2, 3));
return (function*)keeper.ptr();
}
}