From e1ccbeedc41da4e6eba0fb4260c954eda92e5399 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Mon, 6 Jun 2022 16:04:25 +0200 Subject: [PATCH] Fix operator== --- include/wrenpp/detail/module_and_name.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/wrenpp/detail/module_and_name.hpp b/include/wrenpp/detail/module_and_name.hpp index 9552be0..15cfb4b 100644 --- a/include/wrenpp/detail/module_and_name.hpp +++ b/include/wrenpp/detail/module_and_name.hpp @@ -117,8 +117,7 @@ namespace wren { {} constexpr bool ModuleAndName::operator==(const ModuleAndName& other) const noexcept { - const bool retval = (this->m_hash == other.m_hash); - assert(not retval or deep_equal(other)); + const bool retval = (this->m_hash == other.m_hash and deep_equal(other)); return retval; }