Make CyclicInteractionError::GetCycle() const

This commit is contained in:
Oliver Hamlet
2023-01-06 22:20:34 +00:00
parent fbc503a363
commit 57b397aed6
2 changed files with 2 additions and 2 deletions
@@ -51,7 +51,7 @@ public:
* has an edge going to the first Vertex.
* @return A vector of Vertex elements representing the cyclic path.
*/
LOOT_API std::vector<Vertex> GetCycle();
LOOT_API std::vector<Vertex> GetCycle() const;
private:
std::vector<Vertex> cycle_;
+1 -1
View File
@@ -48,5 +48,5 @@ CyclicInteractionError::CyclicInteractionError(std::vector<Vertex> cycle) :
std::runtime_error("Cyclic interaction detected: " + describeCycle(cycle)),
cycle_(cycle) {}
std::vector<Vertex> CyclicInteractionError::GetCycle() { return cycle_; }
std::vector<Vertex> CyclicInteractionError::GetCycle() const { return cycle_; }
}