This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PR 58148 patch
- From: Daniel Krügler <daniel dot kruegler at gmail dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: François Dumont <frs dot dumont at gmail dot com>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 27 Aug 2013 22:48:42 +0200
- Subject: Re: PR 58148 patch
- Authentication-results: sourceware.org; auth=none
- References: <521BB025 dot 3040700 at gmail dot com> <521BBD4F dot 1040300 at oracle dot com> <521D0D5A dot 3060201 at gmail dot com> <521D1001 dot 3080504 at oracle dot com>
2013/8/27 Paolo Carlini <paolo.carlini@oracle.com>:
> On 08/27/2013 10:34 PM, François Dumont wrote:
>>
>>
>> As you seem to be more concern by the usage of experimental
>> std::common_type than by the usage of const volatile void*I would like to
>> propose the attached patch.
>
> I don't think we should do that either. For example, if we are using
> std::less & co to accommodate for segmented memory etc, I don't think we
> should reduce all sorts of pointers to void* pointers, otherwise we could as
> well use < & co. No, for 4.9.0 let's do something simple and safe.
Wouldn't it solve the problem, if decltype(*it) is implicitly
convertible to the value type? [I'm sorry, if I missed the essential
context here]
- Daniel