cxx1y-contextual-conversion-tweaks.cpp | 8 template <class T> class zero_init { class in namespace:n3323_example 10 zero_init() : val(static_cast<T>(0)) {} function in class:n3323_example::zero_init 11 zero_init(T val) : val(val) {} function in class:n3323_example::zero_init 21 zero_init<int *> p; 29 zero_init<int> i; 39 //expected-error@23 {{ambiguous conversion of delete expression of type 'zero_init<int *>' to a pointer}} 42 //expected-error@31 {{multiple conversions from switch condition type 'zero_init<int>' to an integral or enumeration type}}
|