Lines Matching refs:enable_if
9 …X(bool b) __attribute__((enable_if(b, "chosen when 'b' is true"))); // expected-note{{candidate d…
11 void f(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero")));
12 …void f(int n) __attribute__((enable_if(n == 1, "chosen when 'n' is one"))); // expected-note{{mem…
14 …static void s(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))); // expected-n…
16 …void conflict(int n) __attribute__((enable_if(n+n == 10, "chosen when 'n' is five"))); // expecte…
17 …void conflict(int n) __attribute__((enable_if(n*2 == 10, "chosen when 'n' is five"))); // expecte…
19 operator long() __attribute__((enable_if(true, "chosen on your platform")));
20 operator int() __attribute__((enable_if(false, "chosen on other platform")));
22 …operator fp() __attribute__((enable_if(false, "never enabled"))) { return surrogate; } // expecte… in operator fp()
25 void X::f(int n) __attribute__((enable_if(n == 0, "chosen when 'n' is zero"))) // expected-note{{m… in f()
29 void X::f(int n) __attribute__((enable_if(n == 2, "chosen when 'n' is two"))) // expected-error{{o… in f()
37 void deprec1(int i) __attribute__((enable_if(old() == 0, "chosen when old() is zero"))); // expect…
38 void deprec2(int i) __attribute__((enable_if(old() == 0, "chosen when old() is zero"))); // expect…
44 template<typename T> void typedep(T t) __attribute__((enable_if(t, ""))); // expected-note{{candid…
45 template<int N> void valuedep() __attribute__((enable_if(N == 1, "")));
50 template<int N> void valuedep() __attribute__((enable_if(N == not_constexpr(), "")));
52 template <typename T> void instantiationdep() __attribute__((enable_if(sizeof(sizeof(T)) != 0, ""))…