Skip to content

Commit d71ba0c

Browse files
authored
(perf): Add a missing noexcept to a pytype constructor (#3236)
* Add a missing noexcept to pytypes constructor. Adds a few missing noexcept to PyType constructors for perf reasons. * Revert exception ctor
1 parent 49173e4 commit d71ba0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/pytypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ template <typename T>
761761
struct arrow_proxy {
762762
T value;
763763

764-
arrow_proxy(T &&value) : value(std::move(value)) { }
764+
arrow_proxy(T &&value) noexcept : value(std::move(value)) { }
765765
T *operator->() const { return &value; }
766766
};
767767

0 commit comments

Comments
 (0)