Subject: Re: [boost] Interest in chained relational operations
From: Edward Diener (eldiener_at_[hidden])
Date: 2016-10-21 18:36:26
On 10/21/2016 5:43 PM, Rahman Salim Zengin wrote:
> The code in question is a simple chained comparison implementation. It
> works with any type If relational operators for that type is defined.
The syntax is baffling and needs to be explained in the doc. Why is it:
'cmp::chain < 5 <= inx < 15'
as opposed to, let's say:
'cmp::chain > 5 <= inx < 15'
In other words you are evidently using a class cmp::chain to do your
magic but the operator you use for your chaining '<' seems arbitrary and
a bit confusing.
> May some people find it useful?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk