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.

Benjamin


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net