Boost logo

Boost :

From: Ullrich Koethe (koethe_at_[hidden])
Date: 2000-10-19 12:15:19


David Abrahams wrote:
>
> ----- Original Message -----
> From: "Swatosh, Joe R NWP" <joe.r.swatosh_at_[hidden]>
> Ah. We're being bitten by the asymmetry of numeric_limits<>::min() for
> non-integer (floating) types.

I've always wondered about the purpose of this asymmetry. Why is
numeric_limits<int>::min() returning the smallest int, while
numeric_limits<float>::min() returns the smallest *positive* float.
Wouldn't a different name for both cases make things clearer? Is this a
defect in the standard?

Ulli

-- 
 ________________________________________________________________
|                                                                |
| Ullrich Koethe  Universität Hamburg / University of Hamburg    |
|                 FB Informatik / Dept. of Computer Science      |
|                 AB Kognitive Systeme / Cognitive Systems Group |
|                                                                |
| Phone: +49 (0)40 42883-2573                Vogt-Koelln-Str. 30 |
| Fax:   +49 (0)40 42883-2572                D - 22527 Hamburg   |
| Email: u.koethe_at_[hidden]               Germany             |
|        koethe_at_[hidden]                        |
| WWW:   http://kogs-www.informatik.uni-hamburg.de/~koethe/      |
|________________________________________________________________|

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