Home | History | Annotate | Download | only in drs

Lines Matching full:convert_to

645   template<typename T> struct convert_to { operator T() const; };
653 A a1 = convert_to<A>();
654 A a2 = convert_to<A&>();
655 A a3 = convert_to<const A>();
656 A a4 = convert_to<const volatile A>(); // expected-error {{no viable}}
657 A a5 = convert_to<const volatile A&>(); // expected-error {{no viable}}
659 B b1 = convert_to<B>();
660 B b2 = convert_to<B&>();
661 B b3 = convert_to<const B>();
662 B b4 = convert_to<const volatile B>(); // expected-error {{no viable}}
663 B b5 = convert_to<const volatile B&>(); // expected-error {{no viable}}
665 int n1 = convert_to<int>();
666 int n2 = convert_to<int&>();
667 int n3 = convert_to<const int>();
668 int n4 = convert_to<const volatile int>();
669 int n5 = convert_to<const volatile int&>();