@@ -67,7 +67,7 @@ struct build_list<vector_type, true> {
6767 }
6868};
6969
70- // / \brief Change the behaviour of indexing (method __getitem__ in Python).
70+ // / \brief Change the behavior of indexing (method __getitem__ in Python).
7171// / This is suitable for container of Eigen matrix objects if you want to mutate
7272// / them.
7373template <typename Container>
@@ -418,14 +418,17 @@ struct StdVectorPythonVisitor {
418418 expose (class_name, doc_string, EmptyPythonVisitor ());
419419 }
420420
421- template <typename Visitor>
422- static void expose (const std::string &class_name, const Visitor &visitor) {
421+ template <typename DerivedVisitor>
422+ static void expose (
423+ const std::string &class_name,
424+ const boost::python::def_visitor<DerivedVisitor> &visitor) {
423425 expose (class_name, " " , visitor);
424426 }
425427
426- template <typename Visitor>
427- static void expose (const std::string &class_name,
428- const std::string &doc_string, const Visitor &visitor) {
428+ template <typename DerivedVisitor>
429+ static void expose (
430+ const std::string &class_name, const std::string &doc_string,
431+ const boost::python::def_visitor<DerivedVisitor> &visitor) {
429432 // Apply visitor on already registered type or if type is not already
430433 // registered, we define and apply the visitor on it
431434 auto add_std_visitor =
0 commit comments