mirror of
https://github.com/boostorg/python.git
synced 2026-01-28 07:22:31 +00:00
New function invocation mechanism. This is the major groundwork for handling virtual functions with default implementations properly
[SVN r16388]
This commit is contained in:
@@ -199,6 +199,9 @@ D take_d_shared_ptr(boost::shared_ptr<D> d) { return *d; }
|
||||
|
||||
boost::shared_ptr<A> d_factory() { return boost::shared_ptr<B>(new D); }
|
||||
|
||||
struct Unregistered {};
|
||||
Unregistered make_unregistered(int) { return Unregistered(); }
|
||||
|
||||
BOOST_PYTHON_MODULE(m1)
|
||||
{
|
||||
using namespace boost::python;
|
||||
@@ -222,6 +225,8 @@ BOOST_PYTHON_MODULE(m1)
|
||||
def("new_noddy", new_noddy);
|
||||
def("new_simple", new_simple);
|
||||
|
||||
def("make_unregistered", make_unregistered);
|
||||
|
||||
// Expose f() in all its variations
|
||||
def("f", f);
|
||||
def("f_mutable_ref", f_mutable_ref);
|
||||
|
||||
Reference in New Issue
Block a user