Boost logo

Boost :

From: Matthias Troyer (troyer_at_[hidden])
Date: 2008-06-17 04:47:48


On Apr 29, 2008, at 4:01 PM, Neal Becker wrote:

> Can we please change
>
> assert(min_arg < max_arg);
>
> to assert (min_arg <= max_arg)
>
> ? Otherwise, breaks on corner case.

Actually for uniform real the range is [min_arg,max_arg) and thus
min_arg == max_arg is the empty set. Hence the test is correct as it is

Matthias


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