[ub] Justification for < not being a total order on pointers?
Gabriel Dos Reis
gdr at microsoft.com
Fri Oct 11 00:04:21 CEST 2013
I think we must be extremely careful in generalizations.
For example, GCC/libstdc++ isn't necessarily built for all supported platforms.
Even the ones that have g++ built don't even have the minimal runtime built.
From: ub-bounces at open-std.org [mailto:ub-bounces at open-std.org] On Behalf Of Christopher Jefferson
Sent: Thursday, October 10, 2013 4:59 PM
To: Lawrence Crowl
Cc: ub at open-std.org
Subject: Re: [ub] Justification for < not being a total order on pointers?
On 10 Oct 2013 21:33, "Lawrence Crowl" <Lawrence at crowl.org<mailto:Lawrence at crowl.org>> wrote:
>
> On 10/10/13, Nevin Liber <nevin at eviloverlord.com<mailto:nevin at eviloverlord.com>> wrote:
> > On 10 October 2013 02:36, Lawrence Crowl <Lawrence at crowl.org<mailto:Lawrence at crowl.org>> wrote:
> >> The problem is that if you need to represent an object with more than
> >> one segment (as was necessary for arrays > 64 kB on x86) then
> >> requiring a total order within an array places a consistency requirement
> >> on computing a total order between arrays.
> >
> > Didn't that issue already exist in C++98 (at least with respect to
> > std::less)?
>
> I think so, but that probably implies that the library hasn't been implemented
> on the full range of machines allowed by the base language.
>
> At this point, I think we need to ask if we really do want to support machines
> with small segments. Does anyone know of any current such machines?
Both GCC and clang both implement std::less on pointers with <, so there are it seems no such machines with a correct open source C++ implementation at least.
Chris
>
> --
> Lawrence Crowl
> _______________________________________________
> ub mailing list
> ub at isocpp.open-std.org<mailto:ub at isocpp.open-std.org>
> http://www.open-std.org/mailman/listinfo/ub
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open-std.org/pipermail/ub/attachments/20131010/741cb6f9/attachment-0001.html
More information about the ub
mailing list