Fixed compilation of boxed_object.hpp in non-debug builds.

This commit is contained in:
Patrick 2025-07-25 00:51:53 +02:00
parent 3d507ddef7
commit 680acdb332

View File

@ -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;