File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ struct Type1
3535 ~Type1 () = default ;
3636
3737 bool operator ==(Type1 const & rhs) const { return value == rhs.value ; }
38- bool operator !=(Type1 const & rhs) const { return value != rhs.value ; }
3938};
4039
4140struct Type2
@@ -57,29 +56,18 @@ struct Type2
5756 ~Type2 () = default ;
5857
5958 bool operator ==(Type2 const & rhs) const { return value == rhs.value ; }
60- bool operator !=(Type2 const & rhs) const { return value != rhs.value ; }
6159};
6260
6361inline bool operator ==(Type1 const & lhs, Type2 const & rhs)
6462{
6563 return lhs.value == rhs.value ;
6664}
6765
68- inline bool operator !=(Type1 const & lhs, Type2 const & rhs)
69- {
70- return !(lhs == rhs);
71- }
72-
7366inline bool operator ==(Type2 const & lhs, Type1 const & rhs)
7467{
7568 return rhs == lhs;
7669}
7770
78- inline bool operator !=(Type2 const & lhs, Type1 const & rhs)
79- {
80- return rhs != lhs;
81- }
82-
8371} // namespace
8472
8573SCENARIO (" equality" , " [equality]" )
You can’t perform that action at this time.
0 commit comments