mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +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 {
|
||||
T value;
|
||||
|
||||
arrow_proxy(T &&value) : value(std::move(value)) { }
|
||||
arrow_proxy(T &&value) noexcept : value(std::move(value)) { }
|
||||
T *operator->() const { return &value; }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user