Skip to content

Commit

Permalink
Add a missing std::move in numpy.h (#4005)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylion007 authored Jun 14, 2022
1 parent 21f0e72 commit 0964a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/numpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0964a90

Please sign in to comment.