Skip to content

Commit 76a5088

Browse files
committed
c++20: suppress 'C++20 says that these are ambiguous, even though the second is reversed'
1 parent 4c92a90 commit 76a5088

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/flamegpu/model/DependencyGraph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/flamegpu/model/DependencyGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)