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 { struct ExtendedMultResult {
T upper; T upper;
T lower; T lower;
friend bool operator==( ExtendedMultResult const& lhs, bool operator==( ExtendedMultResult const& rhs ) const {
ExtendedMultResult const& rhs ) { return upper == rhs.upper && lower == rhs.lower;
return lhs.upper == rhs.upper && lhs.lower == rhs.lower;
} }
}; };