Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#10 copyable types marked as noncopyable

closed-fixed
nobody
None
5
2008-02-06
2008-01-21
No

Consider the following declaration:

struct copyable {
explicit copyable (int i);

private:
int attribute;
};

pyplusplus_gui generates this code from it:

#include <boost/python.hpp>
#include "test_copyable.h"
namespace bp = boost::python;

BOOST_PYTHON_MODULE(pyplusplus){
bp::class_<copyable, boost::noncopyable >( "copyable", bp::init< int >(( bp::arg("i") )) );
bp::implicitly_convertible< int, copyable >();
}

which in my view is wrong, because instances of struct copyable are in fact copyable.

Discussion

  • Roman
    Roman
    2008-02-06

    • status: open --> closed-fixed