Commit 5eda97d7 by Wenzel Jakob

gcc fix

parent b5692721
...@@ -163,7 +163,9 @@ pybind11::class_<std::vector<T, Allocator>, holder_type> bind_vector(pybind11::m ...@@ -163,7 +163,9 @@ pybind11::class_<std::vector<T, Allocator>, holder_type> bind_vector(pybind11::m
throw; throw;
} }
}); });
cl.def("append", (void (Vector::*) (const T &)) & Vector::push_back,
cl.def("append",
[](Vector &v, const T &value) { v.push_back(value); },
arg("x"), arg("x"),
"Add an item to the end of the list"); "Add an item to the end of the list");
......
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