Код: Выделить всё
boost::python::class_< std::vector < T > >("T")
.def(boost::python::vector_indexing_suite >());
Подробнее здесь: https://stackoverflow.com/questions/770 ... n-nanobind
Код: Выделить всё
boost::python::class_< std::vector < T > >("T")
.def(boost::python::vector_indexing_suite >());