2
0
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:
Dave Abrahams
2002-11-24 02:43:24 +00:00
parent 05ce65d9d2
commit e14e4e156c
13 changed files with 563 additions and 189 deletions

View File

@@ -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);