Mihail Konstantinov wrote:

gcc.compile.c++ bin/gcc-4.1.2/debug/boost.o
boost.cpp: In copy constructor ‘B::B(const B&)’:

As this error message suggests: as B derives from A, it is (by default) non-copyable, too. That you have to tell python, too, thus:

class_<A, noncopyable> a("A", init<>);
class_<A, bases<A>, noncopyable> b("B", init<>);
...

HTH,
      Stefan


--

     ...ich hab' noch einen Koffer in Berlin...

_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to