Open
Description
template<typename T1, typename T2>
bool compare(const T1& a, const T2& b) {
return a == b ; // BAD - no warning
}
int main() {
int a = 0;
bool b = false;
compare(a, b);
return 0;
}
The full snippet here: https://godbolt.org/z/Yvs77cjej