diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 1c95ab42d..3b6c05c32 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -304,7 +304,7 @@ class meta_any { using compare_fn_type = bool(const void *, const void *); using copy_fn_type = void *(storage_type &, const void *); using destroy_fn_type = void(void *); - using steal_fn_type = void *(storage_type &, void *, destroy_fn_type *) ENTT_NOEXCEPT; + using steal_fn_type = void *(storage_type &, void *, destroy_fn_type *); template> struct type_traits { @@ -329,7 +329,7 @@ class meta_any { return instance.release(); } - static void * steal(storage_type &to, void *from, destroy_fn_type *) ENTT_NOEXCEPT { + static void * steal(storage_type &to, void *from, destroy_fn_type *) { auto *instance = static_cast(from); new (&to) Type *{instance}; return instance; @@ -355,7 +355,7 @@ class meta_any { return new (&storage) Type{*static_cast(instance)}; } - static void * steal(storage_type &to, void *from, destroy_fn_type *destroy_fn) ENTT_NOEXCEPT { + static void * steal(storage_type &to, void *from, destroy_fn_type *destroy_fn) { void *instance = new (&to) Type{std::move(*static_cast(from))}; destroy_fn(from); return instance;