Przeglądaj źródła

adjacency_matrix: update allocator aware constructor (#909)

Paolo Monteverde 3 lat temu
rodzic
commit
71feb0516d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/entt/graph/adjacency_matrix.hpp

+ 1 - 1
src/entt/graph/adjacency_matrix.hpp

@@ -143,7 +143,7 @@ public:
      * @param allocator The allocator to use.
      * @param allocator The allocator to use.
      */
      */
     adjacency_matrix(const size_type vertices, const allocator_type &allocator = allocator_type{})
     adjacency_matrix(const size_type vertices, const allocator_type &allocator = allocator_type{})
-        : matrix(vertices * vertices),
+        : matrix{vertices * vertices, allocator},
           vert{vertices} {}
           vert{vertices} {}
 
 
     /**
     /**