test: use equals default as needed

This commit is contained in:
Michele Caini
2023-12-21 09:45:31 +01:00
parent 8022cf4200
commit 9b7aa49adc
3 changed files with 4 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ struct base_t {
};
struct derived_t: base_t {
derived_t() {}
derived_t() = default;
};
struct clazz_t {

View File

@@ -12,7 +12,7 @@
#include "../common/config.h"
struct base_t {
base_t() {}
base_t() = default;
virtual ~base_t() = default;
static void destroy(base_t &) {

View File

@@ -10,13 +10,8 @@ struct entity_id {
constexpr entity_id(entity_type value = null) noexcept
: entt{value} {}
constexpr entity_id(const entity_id &other) noexcept
: entt{other.entt} {}
constexpr entity_id &operator=(const entity_id &other) noexcept {
entt = other.entt;
return *this;
}
constexpr entity_id(const entity_id &other) noexcept = default;
constexpr entity_id &operator=(const entity_id &other) noexcept = default;
constexpr operator entity_type() const noexcept {
return entt;