diff options
author | Aaron Gokaslan <skylion.aaron@gmail.com> | 2021-09-02 15:18:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-02 15:18:42 -0400 |
commit | d71ba0cb73616c493d35699a8a9283aa64ef0f6b (patch) | |
tree | 02aee7c1e00e342297ef4966474c4a346c99ec48 | |
parent | 49173e472f9d0f38654ccb20daf203d116b83b39 (diff) | |
download | platform_external_python_pybind11-upstream-master.tar.gz platform_external_python_pybind11-upstream-master.tar.bz2 platform_external_python_pybind11-upstream-master.zip |
(perf): Add a missing noexcept to a pytype constructor (#3236)upstream-master
* Add a missing noexcept to pytypes constructor.
Adds a few missing noexcept to PyType constructors for perf reasons.
* Revert exception ctor
-rw-r--r-- | include/pybind11/pytypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pybind11/pytypes.h b/include/pybind11/pytypes.h index 5e699e5..fa50eb1 100644 --- a/include/pybind11/pytypes.h +++ b/include/pybind11/pytypes.h @@ -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; } }; |