commit | 34b7b54f2947ecc5b15d3dc60ee61aa60b8ef270 | [log] [tgz] |
---|---|---|
author | Andreas Bergmeier <a.bergmeier@dsfishlabs.com> | Tue May 09 15:01:22 2017 +0200 |
committer | Dean Moldovan <dean0x7d@gmail.com> | Tue Jun 27 10:38:41 2017 +0200 |
tree | 512a552bb7aed643a0434ff102fe5d95abdf677c | |
parent | c67033a92680eb401c0221fe0ad9a4e804fa6e7a [diff] [blame] |
Add tests for passing STL containers by pointer `nullptr` is not expected to work in this case.
diff --git a/tests/test_stl.cpp b/tests/test_stl.cpp index 5288097..9762fb9 100644 --- a/tests/test_stl.cpp +++ b/tests/test_stl.cpp
@@ -160,4 +160,6 @@ }; }); + // test_stl_pass_by_pointer + m.def("stl_pass_by_pointer", [](std::vector<int>* v) { return *v; }, "v"_a=nullptr); }