Skip to content

Commit 76e6680

Browse files
committed
test: special member functions warnings (linter)
1 parent 2842470 commit 76e6680

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/example/custom_identifier.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,20 @@
33
#include <entt/entity/entity.hpp>
44
#include <entt/entity/registry.hpp>
55

6-
struct entity_id {
6+
struct entity_id final {
77
using entity_type = std::uint32_t;
88
static constexpr auto null = entt::null;
99

1010
constexpr entity_id(entity_type value = null) noexcept
1111
: entt{value} {}
1212

13-
constexpr entity_id(const entity_id &other) noexcept = default;
14-
constexpr entity_id &operator=(const entity_id &other) noexcept = default;
13+
~entity_id() noexcept = default;
14+
15+
constexpr entity_id(const entity_id &other) = default;
16+
constexpr entity_id(entity_id &&other) noexcept = default;
17+
18+
constexpr entity_id &operator=(const entity_id &other) = default;
19+
constexpr entity_id &operator=(entity_id &&other) noexcept = default;
1520

1621
constexpr operator entity_type() const noexcept {
1722
return entt;

0 commit comments

Comments
 (0)