From 76e668034ce6d621234bb6cca1dac02fd761e2ce Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 22 Dec 2023 14:30:17 +0100 Subject: [PATCH] test: special member functions warnings (linter) --- test/example/custom_identifier.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/example/custom_identifier.cpp b/test/example/custom_identifier.cpp index 866038745..4372a5589 100644 --- a/test/example/custom_identifier.cpp +++ b/test/example/custom_identifier.cpp @@ -3,15 +3,20 @@ #include #include -struct entity_id { +struct entity_id final { using entity_type = std::uint32_t; static constexpr auto null = entt::null; constexpr entity_id(entity_type value = null) noexcept : entt{value} {} - constexpr entity_id(const entity_id &other) noexcept = default; - constexpr entity_id &operator=(const entity_id &other) noexcept = default; + ~entity_id() noexcept = default; + + constexpr entity_id(const entity_id &other) = default; + constexpr entity_id(entity_id &&other) noexcept = default; + + constexpr entity_id &operator=(const entity_id &other) = default; + constexpr entity_id &operator=(entity_id &&other) noexcept = default; constexpr operator entity_type() const noexcept { return entt;