Ralf W. Grosse-Kunstleve 2023-10-09 07:35:33 -07:00
parent 1ce27154d6
commit e7be9c2c2e

View File

@ -71,6 +71,13 @@ public:
PYBIND11_WARNING_POP PYBIND11_WARNING_POP
} }
constexpr LazyInitializeAtLeastOnceDestroyNever() = default;
#if __cplusplus >= 202002L
constexpr
#endif // C++20
~LazyInitializeAtLeastOnceDestroyNever()
= default;
private: private:
alignas(T) char value_storage_[sizeof(T)]; alignas(T) char value_storage_[sizeof(T)];
bool initialized_ = false; bool initialized_ = false;