Re: [PATCH] Implement std::pointer_traits::to_address as per P0653R0

2017-07-20 Thread Glen Fernandes
On Thu, Jul 20, 2017 at 12:53 PM, Jonathan Wakely wrote: > We have a more general problem with this, which is that if it's only > available for C++2a mode then we can't use the new feature in most of > the library. Which would be very unfortunate. I want to use this! > > In order to clean up the va

Re: [PATCH] Implement std::pointer_traits::to_address as per P0653R0

2017-07-20 Thread Jonathan Wakely
On 16/07/17 17:54 -0400, Glen Fernandes wrote: diff --git a/libstdc++-v3/include/bits/allocated_ptr.h b/libstdc++-v3/include/bits/allocated_ptr.h index 773b3f5..72e0179 100644 --- a/libstdc++-v3/include/bits/allocated_ptr.h +++ b/libstdc++-v3/include/bits/allocated_ptr.h @@ -82,16 +82,10 @@ _GLI

Re: [PATCH] Implement std::pointer_traits::to_address as per P0653R0

2017-07-18 Thread Jonathan Wakely
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 (poin

[PATCH] Implement std::pointer_traits::to_address as per P0653R0

2017-07-16 Thread Glen Fernandes
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_trai