"include/git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "24a2054dbcf8bae3e00927466c1942103f9df0f6"
Commit 5eda97d7 authored by Wenzel Jakob's avatar Wenzel Jakob
Browse files

gcc fix

parent b5692721
......@@ -163,7 +163,9 @@ pybind11::class_<std::vector<T, Allocator>, holder_type> bind_vector(pybind11::m
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"),
"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