diff --git a/source/mijin/container/boxed_object.hpp b/source/mijin/container/boxed_object.hpp index f9365b7..a2d1991 100644 --- a/source/mijin/container/boxed_object.hpp +++ b/source/mijin/container/boxed_object.hpp @@ -68,12 +68,12 @@ public: BoxedObject(const BoxedObject&) = delete; BoxedObject(BoxedObject&&) = delete; -#if MIJIN_BOXED_OBJECT_DEBUG constexpr ~BoxedObject() noexcept { +#if MIJIN_BOXED_OBJECT_DEBUG MIJIN_ASSERT(!constructed, "BoxedObject::~BoxedObject(): Object has not been destroyed prior to destructor!"); - } #endif + } BoxedObject& operator=(const BoxedObject&) = delete; BoxedObject& operator=(BoxedObject&&) = delete;