This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] add unique_ptr header
- From: David Malcolm <dmalcolm at redhat dot com>
- To: Trevor Saunders <tbsaunde at tbsaunde dot org>, Jonathan Wakely <jwakely at redhat dot com>, law at redhat dot com
- Cc: tbsaunde+gcc at tbsaunde dot org, gcc-patches at gcc dot gnu dot org, palves at redhat dot com
- Date: Wed, 11 Oct 2017 14:16:38 -0400
- Subject: Re: [PATCH 1/2] add unique_ptr header
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=dmalcolm at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 205997D0FB
- References: <20170731234607.21952-1-tbsaunde+gcc@tbsaunde.org> <20170731234607.21952-2-tbsaunde+gcc@tbsaunde.org> <1501598453.4181.10.camel@redhat.com> <20170802030930.4vh5am6h23zm7f6d@ball> <20170804195550.GA26610@redhat.com> <20170805053949.cou5rlh6pra5nw7y@ball>
On Sat, 2017-08-05 at 01:39 -0400, Trevor Saunders wrote:
> On Fri, Aug 04, 2017 at 08:55:50PM +0100, Jonathan Wakely wrote:
> > On 01/08/17 23:09 -0400, Trevor Saunders wrote:
> > > aiui C++03 is C++98 with a few additions to the stl.
> >
> > Again, STL != C++ Standard Library.
> >
> > C++03 made some important changes to the core language,
> > particularly
> > the value-initialization rules.
> >
> > Most of the library changes were small bug fixes, and most were to
> > locales (which didn't originate in the STL and aren't even
> > templates)
> > and iostreams (which didn't originate in the STL).
> >
> > There were also changes to std::auto_ptr (also not from the STL)
> > which
> > this might rely on (I haven't checked).
>
> I doubt it, as Pedro said in his email it originally copied code from
> std::auto_ptr, but it doesn't use the standard libraries definition
> of
> std::auto_ptr anywhere. However please do feel free to look at the
> implementation.
>
> Trev
>
Trevor: did this go anywhere?
Do we have an unique_ptr class we can use within gcc's own
implementation?
(I was hoping to use it for
https://gcc.gnu.org/ml/gcc-patches/2017-05/msg00439.html
"[PATCH 1/3] c-family: add name_hint/deferred_diagnostic";
see the discussion at:
https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00123.html
onwards)
Thanks
Dave