test: implicit noexcept-ness for dtors

This commit is contained in:
Michele Caini
2024-09-16 17:19:05 +02:00
parent 3f8efac37d
commit 57b46385a9
10 changed files with 12 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ struct tracker {
tracker(const tracker &) = default;
tracker &operator=(const tracker &) = delete;
~tracker() noexcept {
~tracker() {
++(*counter);
}

View File

@@ -71,7 +71,7 @@ struct destruction_order {
destruction_order(const destruction_order &) = delete;
destruction_order &operator=(const destruction_order &) = delete;
~destruction_order() noexcept {
~destruction_order() {
*ctx_check = *ctx_check && (registry->ctx().find<ctx_check_type>() != nullptr);
}

View File

@@ -39,7 +39,7 @@ struct update_from_destructor {
return *this;
}
~update_from_destructor() noexcept {
~update_from_destructor() {
if(target != entt::null && storage->contains(target)) {
storage->erase(target);
}

View File

@@ -4,7 +4,7 @@
#include "../../common/config.h"
struct base_service {
virtual ~base_service() noexcept = default;
virtual ~base_service() = default;
virtual int invoke(int) = 0;
};

View File

@@ -34,7 +34,7 @@ struct empty {
empty(const empty &) = default;
empty &operator=(const empty &) = default;
virtual ~empty() noexcept {
virtual ~empty() {
++destructor_counter;
}
@@ -53,7 +53,7 @@ struct fat: empty {
fat(double v1, double v2, double v3, double v4)
: value{v1, v2, v3, v4} {}
~fat() noexcept override = default;
~fat() override = default;
fat(const fat &) = default;
fat &operator=(const fat &) = default;
@@ -74,7 +74,7 @@ struct unmanageable {
unmanageable()
: value{std::make_unique<int>(3)} {}
~unmanageable() noexcept = default;
~unmanageable() = default;
unmanageable(const unmanageable &) = delete;
unmanageable(unmanageable &&) = delete;

View File

@@ -16,7 +16,7 @@
#include "../../common/meta_traits.h"
struct base {
virtual ~base() noexcept = default;
virtual ~base() = default;
static void destroy(base &) {
++counter;

View File

@@ -15,7 +15,7 @@
struct base {
base() = default;
virtual ~base() noexcept = default;
virtual ~base() = default;
void setter(int v) {
value = v;

View File

@@ -39,7 +39,7 @@ struct derived: base {
};
struct abstract {
virtual ~abstract() noexcept = default;
virtual ~abstract() = default;
virtual void func(int) {}
void base_only(int) {}

View File

@@ -6,7 +6,7 @@
#include "../../common/linter.hpp"
struct base {
virtual ~base() noexcept = default;
virtual ~base() = default;
[[nodiscard]] virtual const entt::type_info &type() const noexcept {
return entt::type_id<base>();

View File

@@ -10,7 +10,7 @@ struct entity_id final {
constexpr entity_id(entity_type value = null) noexcept
: entt{value} {}
~entity_id() noexcept = default;
~entity_id() = default;
constexpr entity_id(const entity_id &other) = default;
constexpr entity_id(entity_id &&other) noexcept = default;