Home | History | Annotate | Download | only in SemaTemplate

Lines Matching full:template

5 template<typename T>
6 const T& min(const T&, const T&); // expected-note{{candidate template ignored: deduced conflicting types for parameter 'T' ('int' vs. 'long')}}
12 template<typename R, typename T>
13 R *dyn_cast(const T&); // expected-note{{candidate template ignored: couldn't infer template argument 'R'}}
19 template<int I, typename T>
20 void get(const T&); // expected-note{{candidate template ignored: invalid explicitly-specified argument for template parameter 'I'}}
21 template<template<class T> class, typename T>
22 void get(const T&); // expected-note{{candidate template ignored: invalid explicitly-specified argument for 1st template parameter}}
28 template<typename T>
29 typename T::type get_type(const T&); // expected-note{{candidate template ignored: substitution failure [with T = int *]: type 'int *' cannot be used prior to '::'}}
30 template<typename T>
31 void get_type(T *, int[(int)sizeof(T) - 9] = 0); // expected-note{{candidate template ignored: substitution failure [with T = int]: array size is negative}}
38 template<typename T>
39 const T& min(const T&, const T&); // expected-note{{candidate template ignored: deduced conflicting types for parameter 'T' ('int' vs. 'long')}}
47 template<bool, typename = void> struct enable_if {};
48 template<typename T> struct enable_if<true, T> { typedef T type; };
50 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]}}
54 template<typename Cond, typename T = void> struct enable_if : boost::enable_if<Cond::value, T> {};
56 template<typename T> struct is_int { enum { value = false }; };
57 template<> struct is_int<int> { enum { value = true }; };
58 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]}}
63 template<typename T> struct NonTemplateFunction {
69 template <class A>
74 template <class A>
78 template <class A>
79 void foo(NS2::array<A>); // expected-note{{candidate template ignored: could not match 'NS2::array' against 'NS1::array'}}
86 template<bool, typename = void> struct enable_if {};
87 template<typename T> struct enable_if<true, T> { typedef T type; };
89 template<typename T, T V> struct integral_constant { static const T value = V; };
95 template<typename T>
98 template<typename T,
101 // expected-warning@-2 {{default template arguments for a function template are a C++11 extension}}
103 // expected-note@-4 {{candidate template ignored: disabled by 'enable_if' [with T = int]}}
108 template<typename T>
112 template<typename T>
115 template<typename T,
118 // expected-warning@-2 {{default template arguments for a function template are a C++11 extension}}
121 void baz() { } // expected-note {{candidate template ignored: substitution failure [with T = int]: no type named 'type' in 'PR15673::a_pony<int>'}}
126 template <typename T>
131 // expected-note@-4 {{candidate template ignored: disabled by 'enable_if' [with T = int]}}
133 template<typename T,
136 // expected-warning@-2 {{default template arguments for a function template are a C++11 extension}}