[C++-sig] class registration - bug or feature?

Roman Yakovenko roman.yakovenko at gmail.com
Wed Jul 5 09:03:32 CEST 2006

Hi. Please take a look on next code

struct X{
    void do_smth();


    .def( "do_smth", &X::do_smth );

Boost.Python reports a warning while registering class X second time:
"to-Python converter for struct X already registered; second
conversion method ignored."
But, indeed Boost.Python continues to register the class - I mean,
that Boost.Python adds functions to the already registered class.

My question: is this a bug or it is a desired behaviour?


Roman Yakovenko
C++ Python language binding

More information about the Cplusplus-sig mailing list