Explorar el Código

organizer: make graph() const - close #1274

skypjack hace 7 meses
padre
commit
76b6841c51
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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.
      * @brief Generates a task graph for the current content.
      * @return The adjacency list of the task graph.
      * @return The adjacency list of the task graph.
      */
      */
-    [[nodiscard]] std::vector<vertex> graph() {
+    [[nodiscard]] std::vector<vertex> graph() const {
         std::vector<vertex> adjacency_list{};
         std::vector<vertex> adjacency_list{};
         adjacency_list.reserve(vertices.size());
         adjacency_list.reserve(vertices.size());
         auto adjacency_matrix = builder.graph();
         auto adjacency_matrix = builder.graph();