Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-01-16 17:42:38

Fredrik Wikström <fredrik.wikstrom_at_[hidden]> writes:

> Hi!
> I have a polymorphic class in c++ like:
> class Example
> {
> public:
> void do_something() = 0;
> void do_something_more {}

Illegal C++. Missing argument list. What did you really send to the

> }
> How can I fix this? I really need to define a constructor in python class that
> inherit from the c++ Example class.

Make sure you don't forget to call the test.Example.__init__(self).
That creates the C++ ExampleWrap instance, without which you can't
invoke any member functions.

Dave Abrahams
Boost Consulting

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