Verified Commit ec4a334e authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python: fix arg name

parent 6429ea1b
//
// Copyright (c) 2016 CNRS
// Copyright (c) 2016-2021 CNRS INRIA
//
#ifndef __pinocchio_python_utils_copyable_hpp__
......@@ -18,11 +18,12 @@ namespace pinocchio
/// \brief Add the Python method copy to allow a copy of this by calling the copy constructor.
///
template<class C>
struct CopyableVisitor : public bp::def_visitor< CopyableVisitor<C> >
struct CopyableVisitor
: public bp::def_visitor< CopyableVisitor<C> >
{
template<class PyClass>
void visit(PyClass & cl) const
{ cl.def("copy",&copy,"Returns a copy of *this."); }
{ cl.def("copy",&copy,bp::arg("self"),"Returns a copy of *this."); }
private:
static C copy(const C & self) { return C(self); }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment