diff options
Diffstat (limited to 'ext/pybind11/tests/test_buffers.cpp')
-rw-r--r-- | ext/pybind11/tests/test_buffers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pybind11/tests/test_buffers.cpp b/ext/pybind11/tests/test_buffers.cpp index c3a7a9e02..057250d29 100644 --- a/ext/pybind11/tests/test_buffers.cpp +++ b/ext/pybind11/tests/test_buffers.cpp @@ -75,7 +75,7 @@ private: }; test_initializer buffers([](py::module &m) { - py::class_<Matrix> mtx(m, "Matrix"); + py::class_<Matrix> mtx(m, "Matrix", py::buffer_protocol()); mtx.def(py::init<size_t, size_t>()) /// Construct from a buffer |