diff --git a/include/pybind11/numpy.h b/include/pybind11/numpy.h index cb0e8a4e2..62768adce 100644 --- a/include/pybind11/numpy.h +++ b/include/pybind11/numpy.h @@ -71,6 +71,13 @@ public: PYBIND11_WARNING_POP } + constexpr LazyInitializeAtLeastOnceDestroyNever() = default; +#if __cplusplus >= 202002L + constexpr +#endif // C++20 + ~LazyInitializeAtLeastOnceDestroyNever() + = default; + private: alignas(T) char value_storage_[sizeof(T)]; bool initialized_ = false;