Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2005-09-16 12:00:49


From: "michael toksvig" <michaeltoksvig_at_[hidden]>
>
> > What if T1::min and T2::min, for example, have different signs?

Please keep attributions in your replies when you quote a
previous poster. See
http://www.boost.org/more/discussion_policy.htm#effective. It
helps keep track of things better.

> i don't see why that would make a difference

If you add types with T1::min == -10, and T2::min == 20, the
computed minimum would be 10, which is less restrictive than
T2::min.

It's surprising for the result type to have a less restrictive
range than the inputs.

-- 
Rob Stewart                           stewart_at_[hidden]
Software Engineer                     http://www.sig.com
Susquehanna International Group, LLP  using std::disclaimer;

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