diff --git a/src/entt/core/any.hpp b/src/entt/core/any.hpp index 11ffab52b..f951cd29a 100644 --- a/src/entt/core/any.hpp +++ b/src/entt/core/any.hpp @@ -214,7 +214,7 @@ public: } /*! @brief Frees the internal storage, whatever it means. */ - ~basic_any() noexcept { + ~basic_any() { if(vtable && (mode == any_policy::owner)) { vtable(operation::destroy, *this, nullptr); } diff --git a/src/entt/core/compressed_pair.hpp b/src/entt/core/compressed_pair.hpp index f1bea5ad3..6bb48a07c 100644 --- a/src/entt/core/compressed_pair.hpp +++ b/src/entt/core/compressed_pair.hpp @@ -144,7 +144,7 @@ public: second_base{std::move(other), std::index_sequence_for{}} {} /*! @brief Default destructor. */ - ~compressed_pair() noexcept(std::is_nothrow_destructible_v && std::is_nothrow_destructible_v) = default; + ~compressed_pair() = default; /** * @brief Copy assignment operator.