mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-16 13:47:53 +00:00
(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
This commit is contained in:
parent
49173e472f
commit
d71ba0cb73
@ -761,7 +761,7 @@ template <typename T>
|
|||||||
struct arrow_proxy {
|
struct arrow_proxy {
|
||||||
T value;
|
T value;
|
||||||
|
|
||||||
arrow_proxy(T &&value) : value(std::move(value)) { }
|
arrow_proxy(T &&value) noexcept : value(std::move(value)) { }
|
||||||
T *operator->() const { return &value; }
|
T *operator->() const { return &value; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user