svn commit: r204537 - in projects/clangbsd/contrib/libstdc++: include/ext src

Dag-Erling Smørgrav des at des.no
Tue Mar 2 13:35:43 UTC 2010


Bruce Simpson <bms at incunabulum.net> writes:
> Roman Divacky <rdivacky at freebsd.org> writes:
> > John Baldwin <jhb at freebsd.org>
> > > Roman Divacky <rdivacky at freebsd.org> writes:
> > > >   	    _Rope_RopeLeaf<_CharT, _Alloc>* __l
> > > >   	      = (_Rope_RopeLeaf<_CharT, _Alloc>*)this;
> > > > -	    __l->_Rope_RopeLeaf<_CharT, _Alloc>::~_Rope_RopeLeaf();
> > > > +	    __l->template _Rope_RopeLeaf<_CharT, _Alloc>::~_Rope_RopeLeaf();
> > > Hmm, this hurts my brain to have 'template ' in the middle of a dereference.
> > > I also don't see why it should be needed.
> > C++ seems to work this way... it's ugly yes, but correct
> +1. You do need to qualify the use of templates in situations like this.

It is customary to use typedefs to avoid having to type the full name
every time...  but IIUC, this is vendor code, so it should be fixed
upstream, if at all.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the svn-src-projects mailing list