From 2f4b0c2b9ac851019cbe4d844396aaa0446a674a Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 30 Mar 2020 21:48:07 -0400 Subject: [PATCH] Removes non-functional assert. --- Reflection/Struct.hpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Reflection/Struct.hpp b/Reflection/Struct.hpp index 8b1860e3c..c51758d8a 100644 --- a/Reflection/Struct.hpp +++ b/Reflection/Struct.hpp @@ -114,15 +114,6 @@ struct Serialisable { template class StructImpl: public Struct { public: -#ifndef NDEBUG - StructImpl() { - // Protect against declarations that nominate the wrong Owner; this isn't - // a static assert because that wouldn't catch all invalid cases. - const auto owner = static_cast(this); - assert(owner != nullptr); - } -#endif - /*! @returns the value of type @c Type that is loaded from the offset registered for the field @c name. It is the caller's responsibility to provide an appropriate type of data.