Boost logo

Boost :

Subject: Re: [boost] [Root Pointer] New Documentation
From: Seth (bugs_at_[hidden])
Date: 2016-04-13 04:01:36


On 12-04-16 12:33, work wrote:
>
> ... and for the primitive snipped used std::less<> does not seem
> essential (we do not seem to care for actual order).
Relative pointer comparison is unspecified unless the pointers point to
different members of same object/array (or if they point to functions).
It's also unspecified if only one of the pointers is null. ( § 5.9 ad 2.)

std::less<> specifies an exception in § 20.8.5/8: "For
templates greater, less, greater_equal, and less_equal, the
specializations for any pointer type yield a total order, even if the
built-in operators <, >, <=, >=do not."

It's an interesting world :)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk