Neal Becker | 21 May 15:48

Re: constrained_value question

Neal Becker wrote:

> Robert Kawulak wrote:
> 
>>> From: Neal Becker
>>> One thing might be useful is to have the option to record minimum and
>>> maximum values that are used during a given computation.
>> 
...
It would be easy to do this by making my own compare_type (with memory),
except for the unfortunate fact that within_bounds doesn't (currently)
always call with the arguments in the same order:

        if( lower_bound_included() )
            return compare()(value, lower_bound());
        else
            return !compare()(lower_bound(), value);

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


Gmane