Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-10-20 08:42:24

----- Original Message -----
From: "Gabriel Dos Reis" <Gabriel.Dos-Reis_at_[hidden]>
> If is an integer type, then you're done; else you have a floating
> point type and the canonical model is sign-magnitude and you take
> -max(). Yes that assumes only integer and floating point types are
> supported by numeric_limits<>.
> Floating point types which don't use sign-magnitude aren't covered --
> actually I don't think they are widely used, since LIA or IEEE models
> tends to be the standard; both models use sign-magnitude.
> Am I still missing your point? :-)

I think so. It's all well and good to give your personal prescription for
doing this, based on what you think is widely-used, etc., but is it
supported by the standard text? What if you have a user-defined floating
type that is denorm_indeterminate?


Boost list run by bdawes at, gregod at, cpdaniel at, john at