mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 05:16:10 +01:00
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:
parent
f476bcb633
commit
4f3871d53f
@ -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;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user