소스 검색

test: suppress a warning from clang-cl

Michele Caini 2 년 전
부모
커밋
ffa0a7f276
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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;
     }
     }