Explorar el Código

test: suppress a warning from clang-cl

Michele Caini hace 2 años
padre
commit
ffa0a7f276
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      test/example/custom_identifier.cpp

+ 5 - 0
test/example/custom_identifier.cpp

@@ -13,6 +13,11 @@ struct entity_id {
     constexpr entity_id(const entity_id &other) noexcept
     constexpr entity_id(const entity_id &other) noexcept
         : entt{other.entt} {}
         : entt{other.entt} {}
 
 
+    constexpr entity_id &operator=(const entity_id &other) noexcept {
+        entt = other.entt;
+        return *this;
+    }
+
     constexpr operator entity_type() const noexcept {
     constexpr operator entity_type() const noexcept {
         return entt;
         return entt;
     }
     }