
29 Jul
2005
29 Jul
'05
noon
"Jason Hise" <chaos@ezequal.com> skrev i meddelandet news:42E9A2B1.4020407@ezequal.com...
Why does the C++ language have to ban such potentially fun things as infinite implicit conversion chains and overloading the dot operator?
Because it would force the compiler to create conversion chains thru any unrelated types, that just happen to be present. Combine that with overload resolution, C style type promotions, and templates, and you have got what? A real mess! struct x { operator int(); }; struct y { }; Here, an x isn't convertible to a y. Good! struct z { z(int); operator y(); }; Now they would be! Bo Persson