From 0964a9093a728dbf67b9b98c6371752b1a346f25 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Tue, 14 Jun 2022 14:20:26 -0400 Subject: [PATCH] Add a missing std::move in numpy.h (#4005) --- 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); }