mirror of
https://github.com/pybind/pybind11.git
synced 2026-03-14 20:27:47 +00:00
Add tests for passing STL containers by pointer
`nullptr` is not expected to work in this case.
This commit is contained in:
committed by
Dean Moldovan
parent
c67033a926
commit
34b7b54f29
@@ -160,4 +160,6 @@ TEST_SUBMODULE(stl, m) {
|
||||
};
|
||||
});
|
||||
|
||||
// test_stl_pass_by_pointer
|
||||
m.def("stl_pass_by_pointer", [](std::vector<int>* v) { return *v; }, "v"_a=nullptr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user