From ccf301c73de365e2d05f26b829fa3bee74d0ef5b Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 23 Aug 2022 19:20:56 +0200 Subject: [PATCH] test: review/minor changes --- test/lib/meta_plugin_std/types.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/test/lib/meta_plugin_std/types.h b/test/lib/meta_plugin_std/types.h index 928cbc21b..a89a9669d 100644 --- a/test/lib/meta_plugin_std/types.h +++ b/test/lib/meta_plugin_std/types.h @@ -11,15 +11,11 @@ struct custom_type_hash; #define ASSIGN_TYPE_ID(clazz) \ template<> \ - struct custom_type_hash \ - : std::integral_constant>>>{#clazz}> {} - -template -struct entt::type_hash { - static constexpr entt::id_type value() noexcept { - return custom_type_hash::value; - } -}; + struct entt::type_hash { \ + static constexpr entt::id_type value() noexcept { \ + return entt::basic_hashed_string>>>{#clazz}; \ + } \ + }; struct position { int x;