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
+2 -7
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;