[pygccxml-development] Removing copy constructor
Brought to you by:
mbaas,
roman_yakovenko
From: Benoit L. <ben...@mo...> - 2010-04-13 11:40:49
|
Hi, I have a problem with a class I try to bind (how original!). It has a boost::mutex member (which is non-copyable). My class itself has no explicitely defined copy-constructor. ==> py++ tries to access this copy-constructor in the wrapper class copy-constructor. class MyClass { public: MyClass(){....} // .... protected: // .... boost::mutex m_mutex; // .... }; struct MyClassWrapper : MyClass, bp::wrapper<MyClass> { MyClassWrapper(MyClass const & arg ) : MyClass( arg ), bp::wrapper< MyClass >() { // copy constructor } // other stuff.... // ... }; I tried to set the class.copyable to False, but py++ still generates the same code... Any clue? Thanks! Benoit |