Kaynağa Gözat

table: non-defaulted table iterator's default ctor

Michele Caini 2 yıl önce
ebeveyn
işleme
3a97180b63
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      src/entt/entity/table.hpp

+ 2 - 1
src/entt/entity/table.hpp

@@ -31,7 +31,8 @@ public:
     using iterator_category = std::input_iterator_tag;
     using iterator_concept = std::random_access_iterator_tag;
 
-    constexpr table_iterator() noexcept = default;
+    constexpr table_iterator() noexcept
+        : it{} {}
 
     constexpr table_iterator(It... from) noexcept
         : it{from...} {}