Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Mar 2010 14:35:41 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Bruce Simpson <bms@incunabulum.net>
Cc:        svn-src-projects@freebsd.org, Roman Divacky <rdivacky@freebsd.org>, src-committers@freebsd.org, John Baldwin <jhb@freebsd.org>
Subject:   Re: svn commit: r204537 - in projects/clangbsd/contrib/libstdc++: include/ext src
Message-ID:  <86k4tun8wi.fsf@ds4.des.no>
In-Reply-To: <4B8D07D3.6000303@incunabulum.net> (Bruce Simpson's message of "Tue, 02 Mar 2010 12:42:59 %2B0000")
References:  <201003012130.o21LUB0I022574@svn.freebsd.org> <201003011744.45410.jhb@freebsd.org> <20100302082214.GA24947@freebsd.org> <4B8D07D3.6000303@incunabulum.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Simpson <bms@incunabulum.net> writes:
> Roman Divacky <rdivacky@freebsd.org> writes:
> > John Baldwin <jhb@freebsd.org>
> > > Roman Divacky <rdivacky@freebsd.org> writes:
> > > >   	    _Rope_RopeLeaf<_CharT, _Alloc>* __l
> > > >   	      =3D (_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 deref=
erence.
> > > 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
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86k4tun8wi.fsf>