Lines Matching defs:Conversion
23 namespace Conversion {
43 class Y { }; // expected-note {{candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Z' to 'const Y &' for 1st argument}} \
44 expected-note {{candidate constructor (the implicit move constructor) not viable: no known conversion from 'Z' to 'Y &&' for 1st argument}} \
45 expected-note {{candidate constructor (the implicit copy constructor) not viable: no known conversion from 'Z' to 'const Y &' for 1st argument}} \
46 expected-note {{candidate constructor (the implicit move constructor) not viable: no known conversion from 'Z' to 'Y &&' for 1st argument}}
55 Y y2 = z; // expected-error {{no viable conversion from 'Z' to 'Y'}}
65 const Y& y6 = z; // expected-error {{no viable conversion from 'Z' to 'const Y'}}
75 explicit operator bool(); // expected-note {{conversion to integral type 'bool'}}
108 switch (n) {} // expected-error {{switch condition type 'NotBool' requires explicit conversion to 'bool'}} \
131 explicit operator int(); // expected-note {{conversion to integral type 'int' declared here}}
138 new int[ni]; // expected-error {{array size expression of type 'NotInt' requires explicit conversion to type 'int'}}