From a33ed96bc52af827cb0f2d109b351b95a380039f Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Fri, 9 Jul 2021 21:38:35 +0200 Subject: [PATCH] operator bool() for DelayedConstruction --- src/delayedconstruction.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/delayedconstruction.h b/src/delayedconstruction.h index d60f28f..55d9c40 100644 --- a/src/delayedconstruction.h +++ b/src/delayedconstruction.h @@ -87,6 +87,8 @@ public: bool constructed() const { return m_constructed; } + operator bool() const { return m_constructed; } + private: bool m_constructed{}; union Helper