Add a missing std::move in numpy.h (#4005)

This commit is contained in:
Aaron Gokaslan 2022-06-14 14:20:26 -04:00 committed by GitHub
parent 21f0e72b0f
commit 0964a9093a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1409,7 +1409,7 @@ PYBIND11_NOINLINE void register_structured_dtype(any_container<field_descriptor>
}
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);
}