File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class DependencyGraph {
3737 * @returns True when both graphs represent the same execution graph
3838 * @note Instead compare pointers if you wish to check that they are the same instance
3939 */
40- bool operator ==(const DependencyGraph& rhs);
40+ bool operator ==(const DependencyGraph& rhs) const ;
4141 /* *
4242 * Add an AgentFunctionDescription, host function or submodel as a root node
4343 * @param root The function or submodel to add to the graph as a root
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ DependencyGraph::DependencyGraph(const DependencyGraph& other) : model(other.mod
1818}
1919
2020
21- bool DependencyGraph::operator ==(const DependencyGraph& rhs) {
21+ bool DependencyGraph::operator ==(const DependencyGraph& rhs) const {
2222 std::function<bool (DependencyNode*, DependencyNode*)> checkEqual;
2323 checkEqual = [&checkEqual] (DependencyNode* lhs, DependencyNode* rhs) {
2424 const auto & lhsDeps = lhs->getDependents ();
You can’t perform that action at this time.
0 commit comments