From abdbddf77fa0b38b0eea63e7394d26397a7f57ac Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 12 Dec 2024 14:16:44 +0100 Subject: [PATCH] test: try to trick clang --- test/entt/meta/meta_type.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/entt/meta/meta_type.cpp b/test/entt/meta/meta_type.cpp index ad6c3e11f..d1b6515b0 100644 --- a/test/entt/meta/meta_type.cpp +++ b/test/entt/meta/meta_type.cpp @@ -601,10 +601,10 @@ TEST_F(MetaType, FromVoid) { TEST_F(MetaType, FromVoidOwnership) { bool check = false; auto type = entt::resolve(); - auto instance = std::make_unique(check); + void *instance = std::make_unique(check).release(); - auto any = type.from_void(static_cast(instance.get())); - auto other = type.from_void(static_cast(instance.release()), true); + auto any = type.from_void(instance); + auto other = type.from_void(instance, true); ASSERT_TRUE(any); ASSERT_TRUE(other);