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:
@@ -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(¬_implemented_impl), 2, 3);
|
||||
static handle<> keeper(result);
|
||||
|
||||
return result;
|
||||
static object keeper(function_object(¬_implemented_impl, 2, 3));
|
||||
return (function*)keeper.ptr();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user