Lines Matching refs:g
17 template<class T> decltype(f(T{})) g(T); // this one sfinae's out.
18 template<class T> int *g(T);
20 int *ip = g(3); in foo()
28 template<class T> decltype(f(T{})) g(T); // expected-note{{candidate}}
29 template<class T> int *g(T); //expected-note{{candidate}}
31 double *dp = g(3); //expected-error{{ambiguous}} in foo()
32 …int *ip = g(3.14); // this is OK - because the explicit specialization is deleted and sfinae's out… in foo()
41 template<class T> decltype(f(T{})) g(T); // expected-note{{candidate}}
42 template<class T> int *g(T); //expected-note{{candidate}}
45 …int *dp = g(3); // this is OK - because the non-double specializations are deleted and sfinae's ou… in foo()
46 double *ip = g(3.14); //expected-error{{ambiguous}} in foo()
59 template<class T> decltype(X<T>{}.f(T{})) g(T); // expected-note{{candidate}}
60 template<class T> int *g(T); //expected-note{{candidate}}
63 …int *ip2 = g(3.14); // this is OK - because the non-int specializations are deleted and sfinae's o… in foo()
64 int *ip = g(3); //expected-error{{ambiguous}} in foo()
75 template<class T> decltype(X{}.f(T{})) g(T); // expected-note{{candidate}}
76 template<class T> int *g(T); //expected-note{{candidate}}
79 …int *ip2 = g(3.14); // this is OK - because the non-int specializations are deleted and sfinae's o… in foo()
80 int *ip = g(3); //expected-error{{ambiguous}} in foo()