This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Implement std::pointer_traits::to_address as per P0653R0
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Glen Fernandes <glen dot fernandes at gmail dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 18 Jul 2017 13:48:01 +0100
- Subject: Re: [PATCH] Implement std::pointer_traits::to_address as per P0653R0
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jwakely at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 92A5C2F86C9
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 92A5C2F86C9
- References: <CAHVPgzk5ezf9uhZ+yFsLPZF_PK1TW+aijrJ+6MxM_raDj4RoQg@mail.gmail.com>
On 16/07/17 17:54 -0400, Glen Fernandes wrote:
Implement pointer_traits::to_address as in P0653r0
* include/bits/allocated_ptr.h (allocated_ptr): Use
pointer_traits::to_address.
* include/bits/ptr_traits.h (pointer_traits): Implement to_address.
* include/ext/pointer.h (pointer_traits): Define to_address in
pointer_traits specialization.
* testsuite/20_util/pointer_traits/requirements/explicit_instantiation.cc:
Define operator->.
* testsuite/20_util/pointer_traits/to_address.cc: New tests.
Tested i686-pc-linux-gnu.
Thanks, Glen.
As discussed offlist, Glen is completing a copyright assignment and
we'll deal with this patch shortly.