Boost logo

Boost Users :

From: Jonathan Brandmeyer (jbrandmeyer_at_[hidden])
Date: 2005-01-31 09:55:36


On Mon, 2005-01-31 at 14:24 +0100, 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?

Yes, it is. See libs/python/test/injected.{cpp,py} in the source
package, and the documentation for make_constructor in the reference
manual (its under "Function Invocation and Creation").

HTH,
-Jonathan


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