Merge pull request #449 from Lastique/feature/fix_cxx20_comparison_ambiguity

Fix potential ambiguity of the comparison operator for `BranchParameter`
This commit is contained in:
Scott Godin
2025-11-10 15:19:55 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ BranchParameter::operator=(const BranchParameter& other)
}
bool
BranchParameter::operator==(const BranchParameter& other)
BranchParameter::operator==(const BranchParameter& other) const
{
if (mIsMyBranch != other.mIsMyBranch ||
mHasMagicCookie != other.mHasMagicCookie ||

View File

@@ -67,7 +67,7 @@ class BranchParameter : public Parameter
BranchParameter(const BranchParameter& other);
BranchParameter& operator=(const BranchParameter& other);
bool operator==(const BranchParameter& other);
bool operator==(const BranchParameter& other) const;
Type& value() {return *this;}