1
0
Эх сурвалжийг харах

organizer: make graph() const - close #1274

skypjack 6 сар өмнө
parent
commit
76b6841c51

+ 1 - 1
src/entt/entity/organizer.hpp

@@ -399,7 +399,7 @@ public:
      * @brief Generates a task graph for the current content.
      * @return The adjacency list of the task graph.
      */
-    [[nodiscard]] std::vector<vertex> graph() {
+    [[nodiscard]] std::vector<vertex> graph() const {
         std::vector<vertex> adjacency_list{};
         adjacency_list.reserve(vertices.size());
         auto adjacency_matrix = builder.graph();