Home | History | Annotate | Download | only in dcl.init.ref

Lines Matching refs:ConvertsTo

19 struct ConvertsTo {
49 Base&& base4 = ConvertsTo<Base&&>();
50 Base&& base5 = ConvertsTo<Derived&&>();
51 int && int1 = ConvertsTo<int&&>();
54 Base&& base6 = ConvertsTo<Base>();
55 Base&& base7 = ConvertsTo<Derived>();
58 int (&&function1)(int) = ConvertsTo<int(&)(int)>();
64 int &&int2 = ConvertsTo<int&>(); // expected-error{{no viable conversion from 'ConvertsTo<int &>' to 'int'}}
65 int &&int3 = ConvertsTo<float&>(); // expected-error{{no viable conversion from 'ConvertsTo<float &>' to 'int'}}
86 NonCopyable &&nc8 = ConvertsTo<NonCopyable&&>();
87 NonCopyable &&nc9 = ConvertsTo<NonCopyableDerived&&>();
88 const NonCopyable &nc10 = ConvertsTo<NonCopyable&&>();
89 const NonCopyable &nc11 = ConvertsTo<NonCopyableDerived&&>();
135 void int_rvalue_ref(int&&); // expected-note{{candidate function not viable: no known conversion from 'ConvertsTo<int &>' to 'int &&' for 1st argument}} \
136 // expected-note{{candidate function not viable: no known conversion from 'ConvertsTo<float &>' to 'int &&' for 1st argument}}
153 base_rvalue_ref(ConvertsTo<Base&&>());
154 base_rvalue_ref(ConvertsTo<Derived&&>());
155 int_rvalue_ref(ConvertsTo<int&&>());
157 base_rvalue_ref(ConvertsTo<Base>());
158 base_rvalue_ref(ConvertsTo<Derived>());
160 function_rvalue_ref(ConvertsTo<int(&)(int)>());
162 int_rvalue_ref(ConvertsTo<int&>()); // expected-error{{no matching function for call to 'int_rvalue_ref'}}
163 int_rvalue_ref(ConvertsTo<float&>()); // expected-error{{no matching function for call to 'int_rvalue_ref'}}