mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
gcc fix
This commit is contained in:
parent
b569272127
commit
5eda97d7e4
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user