[Patch] Qualify standard functions with std:: in stl_algo.h
Gabriel Dos Reis
gdr@integrable-solutions.net
Sun Jun 29 22:00:00 GMT 2003
Paolo Carlini <pcarlini@unitus.it> writes:
| Nathan Myers wrote:
|
| >On Sun, Jun 29, 2003 at 10:57:25PM +0200, Paolo Carlini wrote:
| >
| >>this is another bit of the work you envisaged a while ago
| >>(about 6 months)...
| >>
| >Wow, thanks Paolo! This had long vexed me. I wonder, though
| >if they shouldn't say "::std::" instead. Anyway this is better
| > than before, and switching to "::std::" later would not break binary
| > compatibility -- at least not with any correct program!
| >
| Well, if we all agree that '::std::' is better, it's very easy for me
| to do the change: it's just a single search/replace.
I don't think it is better: It is just unnecessary pedantry. We're in
namespace std: looking up the qualified name std::name just finds
::std::name, unambigously. Writing ::std::name, suggests that
std::name could have found something different, which just is untrue.
-- Gaby
More information about the Libstdc++
mailing list