Commit a975ab25 by Wenzel Jakob

minor namespace change in example

parent 4a87933b
...@@ -25,13 +25,13 @@ std::ostream & operator<<(std::ostream &s, El const&v) { ...@@ -25,13 +25,13 @@ std::ostream & operator<<(std::ostream &s, El const&v) {
} }
void init_ex_stl_binder_vector(py::module &m) { void init_ex_stl_binder_vector(py::module &m) {
pybind11::class_<El>(m, "El") py::class_<El>(m, "El")
.def(pybind11::init<int>()); .def(py::init<int>());
pybind11::bind_vector<unsigned int>(m, "VectorInt"); py::bind_vector<unsigned int>(m, "VectorInt");
pybind11::bind_vector<bool>(m, "VectorBool"); py::bind_vector<bool>(m, "VectorBool");
pybind11::bind_vector<El>(m, "VectorEl"); py::bind_vector<El>(m, "VectorEl");
pybind11::bind_vector<std::vector<El>>(m, "VectorVectorEl"); py::bind_vector<std::vector<El>>(m, "VectorVectorEl");
} }
Markdown is supported
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