test: use equals default as needed
This commit is contained in:
@@ -26,7 +26,7 @@ struct base_t {
|
||||
};
|
||||
|
||||
struct derived_t: base_t {
|
||||
derived_t() {}
|
||||
derived_t() = default;
|
||||
};
|
||||
|
||||
struct clazz_t {
|
||||
|
||||
@@ -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 &) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user