Compiler compatibility for Visual Studio 2017 (v141) for template friend operator == (#2792).

Make the operator not-friend is a sufficient solution. Closes #2792
This commit is contained in:
James Smith 2024-02-23 00:07:52 +01:00 committed by Martin Hořeňovský
parent f476bcb633
commit 4f3871d53f
1 changed files with 2 additions and 3 deletions

View File

@ -41,9 +41,8 @@ namespace Catch {
struct ExtendedMultResult {
T upper;
T lower;
friend bool operator==( ExtendedMultResult const& lhs,
ExtendedMultResult const& rhs ) {
return lhs.upper == rhs.upper && lhs.lower == rhs.lower;
bool operator==( ExtendedMultResult const& rhs ) const {
return upper == rhs.upper && lower == rhs.lower;
}
};