Boost logo

Boost :

From: Gabriel Dos Reis (gdr_at_[hidden])
Date: 2002-09-06 12:38:28


Guillaume Melquiond <gmelquio_at_[hidden]> writes:

| Concerning the empty intervals, when std::numeric_limits<T> says that the
| type possesses quiet NaNs, they are used; otherwise, the empty interval is
| [T(1); T(0)]. But it's only an implementation detail and it doesn't impact
| the interface. Moreover, it's only for the default policy; the user can
| provide its own policy.

Thanks for the clarification.

I guess I should have phrased my questioning more accurately.

Why use NaN to represent empty interval at all? Why not just use
[T(1), T(0)] uniformly on all plateform?

-- Gaby


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