[Patch] Qualify standard functions with std:: in stl_algo.h

Gabriel Dos Reis gdr@integrable-solutions.net
Sun Jun 29 21:57:00 GMT 2003


Paolo Carlini <pcarlini@unitus.it> writes:

| Gabriel Dos Reis wrote:
| 
| >| *************** namespace std
| >| *** 1243,1250 ****
| >|         typedef typename iterator_traits<_OutputIterator>::iterator_category _IterType;
| > |   |         if (__first == __last) return __result;
| >| !       return __unique_copy(__first, __last,
| >| ! __result, __binary_pred, _IterType());
| >|       }
| > |   |     /**
| >| --- 1243,1249 ----
| >|         typedef typename iterator_traits<_OutputIterator>::iterator_category _IterType;
| > |   |         if (__first == __last) return __result;
| >| !       return __unique_copy(__first, __last, __result, __binary_pred, _IterType());
| >
| >This should also be qualified -- even though the identifier is in the
| >implementor namespace.
| >
| Argh! In that case *hundreds* more qualifications are needed! (and at
| least another well known implementation doesn't qualify those... ;)

That does not need to be done at once.  It can be done incrementally.

-- Gaby



More information about the Libstdc++ mailing list