Boost logo

Boost :

From: Jens Maurer (jmaurer_at_[hidden])
Date: 2000-03-11 18:46:26


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.

Jens Maurer


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