Lines Matching refs:convert_to
702 template<typename T> struct convert_to { operator T() const; }; struct
706 A a1 = convert_to<A>();
707 A a2 = convert_to<A&>();
708 A a3 = convert_to<const A>();
709 A a4 = convert_to<const volatile A>();
713 A a5 = convert_to<const volatile A&>(); // expected-error {{no viable}}
715 B b1 = convert_to<B>();
716 B b2 = convert_to<B&>();
717 B b3 = convert_to<const B>();
718 B b4 = convert_to<const volatile B>();
722 B b5 = convert_to<const volatile B&>(); // expected-error {{no viable}}
724 A c1 = convert_to<B>();
725 A c2 = convert_to<B&>();
726 A c3 = convert_to<const B>();
727 A c4 = convert_to<const volatile B>(); // expected-error {{no viable}}
728 A c5 = convert_to<const volatile B&>(); // expected-error {{no viable}}
730 int n1 = convert_to<int>();
731 int n2 = convert_to<int&>();
732 int n3 = convert_to<const int>();
733 int n4 = convert_to<const volatile int>();
734 int n5 = convert_to<const volatile int&>();