pxd hack: always add copy constructor by default
parent
3115f9b671
commit
450a652bcf
|
@ -131,11 +131,9 @@ bool Constructor::hasDefaultConstructor() const {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
void Constructor::emit_cython_pxd(FileWriter& pxdFile, Str className) const {
|
void Constructor::emit_cython_pxd(FileWriter& pxdFile, Str className) const {
|
||||||
// if it can ever be constructed, add the default copy constructor by default
|
// HACK HACK: always add the default copy constructor by default
|
||||||
if (nrOverloads() > 0) {
|
|
||||||
pxdFile.oss << "\t\t" << className << "(const " << className
|
pxdFile.oss << "\t\t" << className << "(const " << className
|
||||||
<< "&) except +\n";
|
<< "&) except +\n";
|
||||||
}
|
|
||||||
|
|
||||||
for (size_t i = 0; i < nrOverloads(); i++) {
|
for (size_t i = 0; i < nrOverloads(); i++) {
|
||||||
ArgumentList args = argumentList(i);
|
ArgumentList args = argumentList(i);
|
||||||
|
|
Loading…
Reference in New Issue