Просмотр исходного кода

organizer: make graph() const - close #1274

skypjack 6 месяцев назад
Родитель
Сommit
76b6841c51
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/entity/organizer.hpp

+ 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();