This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 0/2] add unique_ptr class
- From: Trevor Saunders <tbsaunde at tbsaunde dot org>
- To: Jonathan Wakely <jwakely 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: Sat, 5 Aug 2017 01:36:11 -0400
- Subject: Re: [PATCH 0/2] add unique_ptr class
- Authentication-results: sourceware.org; auth=none
- References: <20170731234607.21952-1-tbsaunde+gcc@tbsaunde.org> <20170804185217.GA26544@redhat.com>
On Fri, Aug 04, 2017 at 07:52:18PM +0100, Jonathan Wakely wrote:
> On 31/07/17 19:46 -0400, tbsaunde+gcc@tbsaunde.org wrote:
> > I've been saying I'd do this for a long time, but I'm finally getting to
> > importing the C++98 compatable unique_ptr class Pedro wrote for gdb a while
> > back. I believe the gtl namespace also comes from Pedro, but GNU template
> > library seems as reasonable as any other name I can come up with.
>
> If it's inspired by "STL" then can we call it something else?
>
> std::unique_ptr is not part of the STL, because the STL is a library
> of containers and algorithms from the 1990s. std::unique_ptr is
> something much newer that doesn't originate in the STL.
ok then I forgot or never knew that sorry. It *is* std::unique_ptr in
C++11 or newer, so I think it would be odd to name it something else.
> STL != C++ Standard Library
Will try to remember that, sorry.
> If we want a namespace for GNU utilities, what's wrong with "gnu"?
I'm fine with s/gtl/gnu/g if that's what people want.
Trev