core: implicit noexcept-ness for dtors

This commit is contained in:
Michele Caini
2024-09-16 17:18:01 +02:00
parent 5bb5f396ed
commit 01fa3a06a7
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -144,7 +144,7 @@ public:
second_base{std::move(other), std::index_sequence_for<Other...>{}} {}
/*! @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.