From 01fa3a06a7e4edaf07d2c40c65b51d011d437e7c Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 16 Sep 2024 17:18:01 +0200 Subject: [PATCH] core: implicit noexcept-ness for dtors --- src/entt/core/any.hpp | 2 +- src/entt/core/compressed_pair.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.