Przeglądaj źródła

view: suppress some warnings due to initialization order

Michele Caini 4 lat temu
rodzic
commit
559db104f8
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      src/entt/entity/view.hpp

+ 4 - 4
src/entt/entity/view.hpp

@@ -627,16 +627,16 @@ public:
 
 
     /*! @brief Default constructor to use to create empty, invalid views. */
     /*! @brief Default constructor to use to create empty, invalid views. */
     basic_view() ENTT_NOEXCEPT
     basic_view() ENTT_NOEXCEPT
-        : filter{},
-          pools{} {}
+        : pools{},
+          filter{} {}
 
 
     /**
     /**
      * @brief Constructs a single-type view from a storage class.
      * @brief Constructs a single-type view from a storage class.
      * @param ref The storage for the type to iterate.
      * @param ref The storage for the type to iterate.
      */
      */
     basic_view(storage_type &ref) ENTT_NOEXCEPT
     basic_view(storage_type &ref) ENTT_NOEXCEPT
-        : filter{},
-          pools{&ref} {}
+        : pools{&ref},
+          filter{} {}
 
 
     /**
     /**
      * @brief Returns the leading storage of a view.
      * @brief Returns the leading storage of a view.