[Interest] qSwap or std::swap?

John Weeks john at wavemetrics.com
Mon Oct 26 18:30:28 CET 2015


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




More information about the Interest mailing list