(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:
Aaron Gokaslan 2021-09-02 15:18:42 -04:00 committed by GitHub
parent 49173e472f
commit d71ba0cb73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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; }
};