[PATCH] For SGI stl_algo.h extensions (was: Re: [RFC] Moving apart SGI extensions)
Paolo Carlini
pcarlini@unitus.it
Thu Dec 27 05:46:00 GMT 2001
Phil Edwards wrote:
> > +namespace __gnu_cxx
> > +{
> [...]
> > + typename std::iterator_traits<_InputIter>::value_type >)
>
> Here's a question from a discussion we're having where I am: should
> this be ::std::iterator_traits instead, or is the code legit as stands?
> (I know it passes the testsuite and all, but a few people here feel that's
> a compiler problem.)
>
> That wasn't a very clear question, but I'm having a hard time explaining
> the problem. :-)
On second thought (i.e., after having studied a little bit ;-) std:: should be ok.
I'm browsing C++SE and there is this nice example in par.8.2 with two namespaces,
Parser and Lexer. Inside Parser (p. 169) Lexer members are referred to simply as
Lexer::something, not as ::Lexer::something. So...
Cheers,
Paolo.
More information about the Libstdc++
mailing list