Dear All,
Such as I have a template class Base<intwhich can automaticaaly
convert to base<douoble>.
Base<int <= Base<double>
And also I have a derived class Derived<intwhich can automatically
convert to Derived<double>.
Derived<int<= Derived<double>
And I have a function
void fun(Base<int>)
If I call
Derived <doublea;
fun(a);
It is ambiguous in the type conversion. Is there any good way I can
avoid it?
Thanks,
Tian