Browse Source

meta: removed wrong noexcept

Michele Caini 6 years ago
parent
commit
78beecf6f1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/entt/meta/meta.hpp

+ 3 - 3
src/entt/meta/meta.hpp

@@ -304,7 +304,7 @@ class meta_any {
     using compare_fn_type = bool(const void *, const void *);
     using compare_fn_type = bool(const void *, const void *);
     using copy_fn_type = void *(storage_type &, const void *);
     using copy_fn_type = void *(storage_type &, const void *);
     using destroy_fn_type = void(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<typename Type, typename = std::void_t<>>
     template<typename Type, typename = std::void_t<>>
     struct type_traits {
     struct type_traits {
@@ -329,7 +329,7 @@ class meta_any {
             return instance.release();
             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<Type *>(from);
             auto *instance = static_cast<Type *>(from);
             new (&to) Type *{instance};
             new (&to) Type *{instance};
             return instance;
             return instance;
@@ -355,7 +355,7 @@ class meta_any {
             return new (&storage) Type{*static_cast<const Type *>(instance)};
             return new (&storage) Type{*static_cast<const Type *>(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<Type *>(from))};
             void *instance = new (&to) Type{std::move(*static_cast<Type *>(from))};
             destroy_fn(from);
             destroy_fn(from);
             return instance;
             return instance;