[C++-sig] tutorial class_data_members compile problem

Chris Hoeppler hoeppler at diener.iap.physik.uni-tuebingen.de
Wed Oct 16 08:21:31 CEST 2002


On 15 Oct 2002, David Abrahams wrote:

> Chris Hoeppler <hoeppler at diener.iap.physik.uni-tuebingen.de> writes:
>
> > * Finally, towards the end of the example,
> >   calling call_f(base) results in
> >
> >   TypeError: bad argument type for built-in operation
> >
> >   When rewriting that function as follows
> >
> >     int call_f(Base *b) { return b->f(); }
> >
> >   it works just fine.
>
> Yeah, I can't reproduce that problem. Here are a module and driver
> file I used to try it out. Placing all three files below in your
> $BOOST_ROOT/libs/python/user directory allows you to test it with
>
>         bjam ... test

Thanks. Great, your files work here, as well. Hmmm. Even modifying them
such that they resemble what I did doesn't break them. Sorry. Maybe I got
some strange characters into my source file when copying/pasting from the
tutorial in my browser?

At any rate, problem solved.

Thanks again, Chris.





More information about the Cplusplus-sig mailing list