mirror of
https://github.com/resiprocate/resiprocate.git
synced 2026-01-12 00:05:02 +08:00
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:
@@ -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 ||
|
||||
|
||||
@@ -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;}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user