Skip to content

Commit 0964a90

Browse files
authored
Add a missing std::move in numpy.h (#4005)
1 parent 21f0e72 commit 0964a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/numpy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,7 @@ PYBIND11_NOINLINE void register_structured_dtype(any_container<field_descriptor>
14091409
}
14101410

14111411
auto tindex = std::type_index(tinfo);
1412-
numpy_internals.registered_dtypes[tindex] = {dtype_ptr, format_str};
1412+
numpy_internals.registered_dtypes[tindex] = {dtype_ptr, std::move(format_str)};
14131413
get_internals().direct_conversions[tindex].push_back(direct_converter);
14141414
}
14151415

0 commit comments

Comments
 (0)