Home | History | Annotate | Download | only in SemaTemplate

Lines Matching defs:enable_if

45   template<bool, typename = void> struct enable_if {};
46 template<typename T> struct enable_if<true, T> { typedef T type; };
48 template<typename T> typename boost::enable_if<sizeof(T) == 4, int>::type if_size_4(); // expected-note{{candidate template ignored: disabled by 'enable_if' [with T = char]}}
52 template<typename Cond, typename T = void> struct enable_if : boost::enable_if<Cond::value, T> {};
56 template<typename T> typename llvm::enable_if<is_int<T> >::type if_int(); // expected-note{{candidate template ignored: disabled by 'enable_if' [with T = char]}}
62 typename boost::enable_if<sizeof(T) == 4, int>::type f(); // expected-error{{no type named 'type' in 'boost::enable_if<false, int>'; 'enable_if' cannot be used to disable this declaration}}
84 template<bool, typename = void> struct enable_if {};
85 template<typename T> struct enable_if<true, T> { typedef T type; };
97 typename Requires = typename std::enable_if<a_trait<T>::value>::type> // expected-warning {{C++11 extension}}
98 // expected-note@-1 {{candidate template ignored: disabled by 'enable_if' [with T = int]}}
106 // FIXME: It would be nice to tunnel the 'disabled by enable_if' diagnostic through here.
108 struct a_pony : std::enable_if<some_trait<T>::value> {};
119 using unicorns = typename std::enable_if<some_trait<T>::value>::type; // expected-warning {{C++11 extension}}
120 // expected-note@-1 {{candidate template ignored: disabled by 'enable_if' [with T = int]}}