We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21f0e72 commit 0964a90Copy full SHA for 0964a90
include/pybind11/numpy.h
@@ -1409,7 +1409,7 @@ PYBIND11_NOINLINE void register_structured_dtype(any_container<field_descriptor>
1409
}
1410
1411
auto tindex = std::type_index(tinfo);
1412
- numpy_internals.registered_dtypes[tindex] = {dtype_ptr, format_str};
+ numpy_internals.registered_dtypes[tindex] = {dtype_ptr, std::move(format_str)};
1413
get_internals().direct_conversions[tindex].push_back(direct_converter);
1414
1415
0 commit comments