
24 Aug
2007
24 Aug
'07
12:49 p.m.
From: Neal Becker Why does bounded_int have parameters: bool LowerIncluded = true, bool UpperIncluded = true, But saturating_int does not have these parameters?
Saturating bounded objects make sense only for closed ranges - how could a saturating object be assigned a value of one of the bounds on out-of-bounds assignment, if the bounds would be excluded from the allowed range, and thus not constraint-conforming? I'll add a note on this to the docs. ;-) Best regards, Robert