This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] For SGI stl_algo.h extensions (was: Re: [RFC] Moving apart SGI extensions)
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.