Thank you, Konstantin and Thiago. > Don't worry. ADL is one of the most complex and obscure corners of C++. It's > several pages long in the standard, all started from an innocent-looking > idea, > "wouldn't it be nice if f(x) called N::f(N::X)?". > > I think it's only less complex than overload resolution, but overloads are > better understood (you can't live without them). I mean, overloads without > templates... that gets complex again.
Right. That's why Scott Meyers devotes quite a lot of space to it. And in C++11 with rvalue references it gets even more complex. -John Weeks _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest