Przeglądaj źródła

core: implicit noexcept-ness for dtors

Michele Caini 1 rok temu
rodzic
commit
01fa3a06a7
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      src/entt/core/any.hpp
  2. 1 1
      src/entt/core/compressed_pair.hpp

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

@@ -214,7 +214,7 @@ public:
     }
     }
 
 
     /*! @brief Frees the internal storage, whatever it means. */
     /*! @brief Frees the internal storage, whatever it means. */
-    ~basic_any() noexcept {
+    ~basic_any() {
         if(vtable && (mode == any_policy::owner)) {
         if(vtable && (mode == any_policy::owner)) {
             vtable(operation::destroy, *this, nullptr);
             vtable(operation::destroy, *this, nullptr);
         }
         }

+ 1 - 1
src/entt/core/compressed_pair.hpp

@@ -144,7 +144,7 @@ public:
           second_base{std::move(other), std::index_sequence_for<Other...>{}} {}
           second_base{std::move(other), std::index_sequence_for<Other...>{}} {}
 
 
     /*! @brief Default destructor. */
     /*! @brief Default destructor. */
-    ~compressed_pair() noexcept(std::is_nothrow_destructible_v<First> && std::is_nothrow_destructible_v<Second>) = default;
+    ~compressed_pair() = default;
 
 
     /**
     /**
      * @brief Copy assignment operator.
      * @brief Copy assignment operator.