boost::python: compilation fails because copy constructor is private
<p>i use boost::python to wrap a C++ class. This class does not allow copy constructors, but the python module always wants to create one. </p>

<p>The C++ class looks like this (simplified)</p>

<pre><code>class Foo {
  public:
    Foo(const char *name); // constructor

  private:
    ByteArray m_bytearray;
};
</code></pre>

<p>The ByteArray class is inherited from boost::noncopyable, therefore Foo does not have copy constructors.</p>

<p>Here's the Python module stub:</p>

<pre><code>BOOST_PYTHON_MODULE(Foo)
{   
  class_&lt;Foo&gt;("Foo", init&lt;const char *&gt;())
  ;
}
</code></pre>

<p>When compiling the boost::python module, i get errors that a copy constructor for Foo cannot be created because ByteArray inherits from boost::noncopyable.</p>

<p>How can i disable copy constructors in my python module?</p>

<p>Thanks
Christoph</p>
