From f781441bcda46284eb373bd73b359fbe45233bc8 Mon Sep 17 00:00:00 2001 From: skypjack Date: Tue, 4 Nov 2025 14:54:37 +0100 Subject: [PATCH] meta: oops :) --- src/entt/meta/meta.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 40ebd542f..a197e3e93 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -475,7 +475,7 @@ public: */ template [[nodiscard]] meta_any allow_cast() const { - if constexpr(!std::is_reference_v || !std::is_const_v>) { + if constexpr(!std::is_reference_v || std::is_const_v>) { if(storage.has_value>>()) { return as_ref(); } else if(*this) {