From 936456adf629b4ce91078376bd45cb59472da362 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Tue, 14 Jun 2022 12:19:57 -0400 Subject: [PATCH] Add a missing std::move in numpy.h --- include/pybind11/numpy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index 43784f8e9e..0291b02d0b 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -1409,7 +1409,7 @@ PYBIND11_NOINLINE void register_structured_dtype(any_container } auto tindex = std::type_index(tinfo); - numpy_internals.registered_dtypes[tindex] = {dtype_ptr, format_str}; + numpy_internals.registered_dtypes[tindex] = {dtype_ptr, std::move(format_str)}; get_internals().direct_conversions[tindex].push_back(direct_converter); }