Boost logo

Boost :

From: Dave Abrahams (abrahams_at_[hidden])
Date: 2000-05-10 00:09:20

on 5/9/00 2:02 PM, jsiek_at_[hidden] at jsiek_at_[hidden] wrote:

> Interesting... I'm meeting next week with some of the NumPy people to
> talk about wrapping up MTL for use in Python. I'd be interested to
> see your approach to doing C++ wrappers.

Good enough. I will have something ready to look at in a few days. In the
meantime, let me whet your appetite.

One simple line of code for each class, and one for each member function of
the class:

extern "C" inittest()
    Py::Module test("test");
    Py::WrappedTypeHandle<Foo> foo("Foo", test);
    foo->add(Py::Constructor<int, long>());
    foo->add(&Foo::f1, "f1");
    foo->add(&Foo::f2, "f2");

...and you're done.

Boost list run by bdawes at, gregod at, cpdaniel at, john at