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

Use PP lib

[SVN r13463]
This commit is contained in:
Dave Abrahams
2002-04-12 18:29:14 +00:00
parent d23daf225d
commit 962a08700e
10 changed files with 387 additions and 100 deletions

View File

@@ -5,7 +5,7 @@
// to its suitability for any purpose.
#include <boost/python/class.hpp>
#include <boost/python/module.hpp>
#include <boost/python/returning.hpp>
#include <boost/python/call_method.hpp>
#include <boost/ref.hpp>
#include <boost/utility.hpp>
@@ -55,7 +55,7 @@ struct abstract_callback : abstract
int f(Y const& y)
{
return returning<int>::call_method(self, "f", boost::ref(y));
return call_method<int>(self, "f", boost::ref(y));
}
PyObject* self;
@@ -73,7 +73,7 @@ struct concrete_callback : concrete
int f(Y const& y)
{
return returning<int>::call_method(self, "f", boost::ref(y));
return call_method<int>(self, "f", boost::ref(y));
}
int f_impl(Y const& y)