diff --git a/test/example/custom_identifier.cpp b/test/example/custom_identifier.cpp index 6a50c8134..1bf4200d1 100644 --- a/test/example/custom_identifier.cpp +++ b/test/example/custom_identifier.cpp @@ -13,6 +13,11 @@ struct entity_id { 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 operator entity_type() const noexcept { return entt; }