This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Include <memory> from system.h (PR bootstrap/82610)
- From: Pedro Alves <palves at redhat dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>, David Malcolm <dmalcolm at redhat dot com>
- Cc: Gerald Pfeifer <gerald at pfeifer dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Trevor Saunders <tbsaunde+gcc at tbsaunde dot org>, Jonathan Wakely <jwakely at redhat dot com>
- Date: Mon, 23 Oct 2017 15:06:46 +0100
- Subject: Re: [PATCH] Include <memory> from system.h (PR bootstrap/82610)
- Authentication-results: sourceware.org; auth=none
- References: <1508763498-38147-1-git-send-email-dmalcolm@redhat.com> <CAFiYyc3abk0689HBxNaVAes5A4papiPJBRsAPspk-j1j=KOD2w@mail.gmail.com>
On 10/23/2017 02:51 PM, Richard Biener wrote:
> On Mon, Oct 23, 2017 at 2:58 PM, David Malcolm <dmalcolm@redhat.com> wrote:
>> OK for trunk?
>
> Not entirely happy as unique-ptr.h doesn't use <memory> but well.
>
Actually it does. It's needed in C++11 mode, because that's
where std::unique_ptr is defined:
#if __cplusplus >= 201103
/* In C++11 mode, all we need is import the standard
std::unique_ptr. */
template<typename T> using unique_ptr = std::unique_ptr<T>;
> Ok to unbreak bootstrap.
Thanks,
Pedro Alves