Browse Source

any: minor changes

Michele Caini 1 year ago
parent
commit
fd4dfbc328
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/entt/core/any.hpp

+ 2 - 2
src/entt/core/any.hpp

@@ -92,13 +92,13 @@ class basic_any {
             }
             }
             break;
             break;
         case operation::move:
         case operation::move:
-            ENTT_ASSERT(value.mode == any_policy::embedded, "Unexpected policy type");
+            ENTT_ASSERT(value.mode == any_policy::embedded, "Unexpected policy");
             if constexpr(in_situ<Type>) {
             if constexpr(in_situ<Type>) {
                 return ::new(&static_cast<basic_any *>(const_cast<void *>(other))->storage) Type{std::move(*const_cast<Type *>(elem))};
                 return ::new(&static_cast<basic_any *>(const_cast<void *>(other))->storage) Type{std::move(*const_cast<Type *>(elem))};
             }
             }
             [[fallthrough]];
             [[fallthrough]];
         case operation::get:
         case operation::get:
-            ENTT_ASSERT(value.mode == any_policy::embedded, "Unexpected policy type");
+            ENTT_ASSERT(value.mode == any_policy::embedded, "Unexpected policy");
             if constexpr(in_situ<Type>) {
             if constexpr(in_situ<Type>) {
                 return elem;
                 return elem;
             }
             }