Fix STL casters for containers with proxies (regression)
To avoid an ODR violation in the test suite while testing
both `stl.h` and `std_bind.h` with `std::vector<bool>`,
the `py::bind_vector<std::vector<bool>>` test is moved to
the secondary module (which does not include `stl.h`).
diff --git a/tests/test_stl_binders.py b/tests/test_stl_binders.py
index 7496d05..bf1aa67 100644
--- a/tests/test_stl_binders.py
+++ b/tests/test_stl_binders.py
@@ -86,7 +86,9 @@
def test_vector_bool():
- vv_c = m.VectorBool()
+ import pybind11_cross_module_tests as cm
+
+ vv_c = cm.VectorBool()
for i in range(10):
vv_c.append(i % 2 == 0)
for i in range(10):