diff --git a/src/main.cpp b/src/main.cpp index 93fd2e6..cc49b6a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -225,7 +225,7 @@ PYBIND11_MODULE(NDIlib, m) { static std::unordered_map strs; strs[&self] = py::str(data); - self.p_data = strs[&self].data(); + self.p_data = &strs[&self][0]; }); py::class_(m, "Tally")