File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ TEST(MatcherCastTest, FromSameType) {
613
613
struct ConvertibleFromAny {
614
614
ConvertibleFromAny (int a_value) : value(a_value) {}
615
615
template <typename T>
616
- ConvertibleFromAny (const T& /* a_value*/ ) : value(-1 ) {
616
+ explicit ConvertibleFromAny (const T& /* a_value*/ ) : value(-1 ) {
617
617
ADD_FAILURE () << " Conversion constructor called" ;
618
618
}
619
619
int value;
@@ -867,11 +867,15 @@ class Unprintable {
867
867
public:
868
868
Unprintable () : c_(' a' ) {}
869
869
870
- bool operator ==(const Unprintable& /* rhs */ ) { return true ; }
871
870
private:
872
871
char c_;
873
872
};
874
873
874
+ inline bool operator ==(const Unprintable& /* lhs */ ,
875
+ const Unprintable& /* rhs */ ) {
876
+ return true ;
877
+ }
878
+
875
879
TEST (EqTest, CanDescribeSelf) {
876
880
Matcher<Unprintable> m = Eq (Unprintable ());
877
881
EXPECT_EQ (" is equal to 1-byte object <61>" , Describe (m));
You can’t perform that action at this time.
0 commit comments