Boost logo

Boost :

From: jsiek_at_[hidden]
Date: 2000-03-11 21:03:48


Jens Maurer writes:
> jsiek_at_[hidden] wrote:
> > I think unconditional requirement for LessThanComparable is not
> > needed. Instead, interval<T> should be LessThanComparable *if*
> > T is LessThanComparable.
>
> No. For nearly every interval operation, we have to either use
> std::max() or check if some bound is below or above zero.
> See operator*, for example.
> LessThanComparable for T is an important general requirement.

Ok, that's right.


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