diff --git a/include/eigenpy/std-vector.hpp b/include/eigenpy/std-vector.hpp index 77f78c951..dc191a9f9 100644 --- a/include/eigenpy/std-vector.hpp +++ b/include/eigenpy/std-vector.hpp @@ -359,13 +359,13 @@ struct contains_vector_derived_policies /// returned to Python. /// template -struct AddStdMethodToStdVector +struct ExposeStdMethodToStdVector : public boost::python::def_visitor< - AddStdMethodToStdVector > { + ExposeStdMethodToStdVector > { typedef StdContainerFromPythonList FromPythonListConverter; - AddStdMethodToStdVector(const CoVisitor &co_visitor) + ExposeStdMethodToStdVector(const CoVisitor &co_visitor) : m_co_visitor(co_visitor) {} template @@ -383,11 +383,11 @@ struct AddStdMethodToStdVector const CoVisitor &m_co_visitor; }; -/// Helper to ease AddStdMethodToStdVector construction +/// Helper to ease ExposeStdMethodToStdVector construction template -static AddStdMethodToStdVector -createAddStdMethodToStdVector(const CoVisitor &co_visitor) { - return AddStdMethodToStdVector(co_visitor); +static ExposeStdMethodToStdVector +createExposeStdMethodToStdVector(const CoVisitor &co_visitor) { + return ExposeStdMethodToStdVector(co_visitor); } } // namespace internal @@ -429,7 +429,8 @@ struct StdVectorPythonVisitor { // Apply visitor on already registered type or if type is not already // registered, we define and apply the visitor on it auto add_std_visitor = - internal::createAddStdMethodToStdVector(visitor); + internal::createExposeStdMethodToStdVector( + visitor); if (!register_symbolic_link_to_registered_type( add_std_visitor)) { bp::class_ cl(class_name.c_str(), doc_string.c_str());