diff --git a/src/schreier-sims.cpp b/src/schreier-sims.cpp index 994e0d05..4025be4b 100644 --- a/src/schreier-sims.cpp +++ b/src/schreier-sims.cpp @@ -78,11 +78,14 @@ the list *gens*. for this class, or the number of generators exceeds the maximum capacity. )pbdoc"); - thing.def("__copy__", - [](SchreierSims_ const& self) { return SchreierSims_(self); }); + thing.def("__copy__", [](SchreierSims_ const& self) { + return std::make_unique(self); + }); thing.def( "copy", - [](SchreierSims_ const& self) { return SchreierSims_(self); }, + [](SchreierSims_ const& self) { + return std::make_unique(self); + }, R"pbdoc( :sig=(self: SchreierSims) -> SchreierSims: