Boost logo

Boost Users :

From: Benjamin Schmeling (Benjamin_Schmeling_at_[hidden])
Date: 2005-01-31 11:12:45

Benjamin Schmeling wrote:

> Hi,
> how can I expand my C++ class by adding a new contructor with PyLong
> as an parameter without changing my C++ Class.
> Is it possible?
I found out that if I define a function:

void consructor(_object* a,long_ l){

and overload the __init__ by .def("__init__", constructor)
my constructor function is called. Now I have the problem that I don't
know how to handle _object* and to realize my constructor.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at