[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();
};
class_<X>("X");
class_<X>("X")
.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?
Thanks.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
More information about the Cplusplus-sig
mailing list