Skip to content
Snippets Groups Projects
Commit 0abb812a authored by pre-commit-ci[bot]'s avatar pre-commit-ci[bot] Committed by Justin Carpentier
Browse files

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
parent ac3b7c86
No related branches found
No related tags found
No related merge requests found
...@@ -18,13 +18,14 @@ struct CopyableVisitor : public bp::def_visitor<CopyableVisitor<C> > { ...@@ -18,13 +18,14 @@ struct CopyableVisitor : public bp::def_visitor<CopyableVisitor<C> > {
template <class PyClass> template <class PyClass>
void visit(PyClass& cl) const { void visit(PyClass& cl) const {
cl.def("copy", &copy, bp::arg("self"), "Returns a copy of *this."); cl.def("copy", &copy, bp::arg("self"), "Returns a copy of *this.");
cl.def("__copy__", &copy,bp::arg("self"),"Returns a copy of *this."); cl.def("__copy__", &copy, bp::arg("self"), "Returns a copy of *this.");
cl.def("__deepcopy__", &deepcopy,bp::args("self","memo"),"Returns a deep copy of *this."); cl.def("__deepcopy__", &deepcopy, bp::args("self", "memo"),
"Returns a deep copy of *this.");
} }
private: private:
static C copy(const C& self) { return C(self); } static C copy(const C& self) { return C(self); }
static C deepcopy(const C & self, bp::dict) { return C(self); } static C deepcopy(const C& self, bp::dict) { return C(self); }
}; };
} // namespace eigenpy } // namespace eigenpy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment