[ub] Justification for < not being a total order on pointers?

Nevin Liber nevin at eviloverlord.com
Mon Aug 26 20:58:51 CEST 2013


On 26 August 2013 13:52, Ville Voutilainen <ville.voutilainen at gmail.com>wrote:

>
> I have strong reasons to believe we'll see an NB comment proposing
> std::less
> to be specialized for tuple<T*> and containers.
>

What about tuple<T*&>?  I'm thinking about what is returned from std::tie,
as one quick way to implement a comparison operator for a user defined type
is to compare the result of std::tie called on the appropriate member
variables.
-- 
 Nevin ":-)" Liber  <mailto:nevin at eviloverlord.com>  (847) 691-1404
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open-std.org/pipermail/ub/attachments/20130826/89bc15a5/attachment.html 


More information about the ub mailing list