struct A { operator int(); operator char();// const; } a; struct B { B(int); B(char); }; int main() { B b(a); }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:10:10: error: call of overloaded 'B(A&)' is ambiguous prog.cpp:7:5: note: candidates are: B::B(char) prog.cpp:6:5: note: B::B(int)
Standard output is empty