C++ Logo

SG12

Advanced search

Subject: Re: [ub] Justification for < not being a total order on pointers?
From: Nevin Liber (nevin_at_[hidden])
Date: 2013-10-16 10:40:45


On 16 October 2013 10:37, Gabriel Dos Reis <gdr_at_[hidden]> wrote:

>
> | It would be surprising that:
> |
> | set<T, less<T>> works, but
> | set<T, less<>> does not.
>
> Make T = std::less<std::complex<MyFloat>> and instantiate the argument :-)
>

Neither operator< nor less<complex> is defined by the standard.

-- 
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404



SG12 list run by herb.sutter at gmail.com