language: C++ 4.7.2 (gcc-4.7.2)
date: 519 days 7 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
struct foo {
    operator int() const { return 17; }
};
 
template <typename T>
T max(T x, T y);
 
int main() {
   max(0, foo());
}
 
 
prog.cpp: In function ‘int main()’:
prog.cpp:9: error: no matching function for call to ‘max(int, foo)’