4 ms·
I know, ADL makes it impossible to refactor anything in company-scale codebase without extraordinary efforts. Google has a team and special toolset to do just
by vl 10y ago
I know, ADL makes it impossible to refactor anything in company-scale codebase without extraordinary efforts.
Google has a team and special toolset to do just that.
Also, how to use swap correctly? (Now, with std::move is less relevant though):
template bla-bla {
using std::swap;
swap(result, computed);
}
Sure, I could have guessed this is correct way of using it by myself...
- gurkendoktor 10y agostd::begin suffers from the same problem and will stay relevant for longer. The cppreference.com docs specifically mention the "using trick"[1], so it seems to be an established pattern now. It's still ridiculous - calling a function should be easy :( [1] http://en.cppreference.com/w/cpp/iterator/begin http://en.cppreference.com/w/cpp/iterator/begin