This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] Fix libstdc++/54577
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Date: Tue, 14 May 2013 14:51:46 +0200
- Subject: Re: [v3] Fix libstdc++/54577
- References: <518D0177 dot 8090709 at oracle dot com> <519230A9 dot 5040909 at oracle dot com>
On 05/14/2013 02:40 PM, Paolo Carlini wrote:
Then I suppose that the correct way to move forward to C++11 the
ext/pointer.h stuff would be adding a pointer_traits specialization
for those pointer-like types, which would also wrap the cast
operations in pointer_to. Then, in __normal_iterator::_M_const_cast
use pointer_traits.
... and even more interestingly, looks like Jonathan already did most of
this, at the end of ext/pointer.h. Oh my ;)
Paolo.