21 May 15:48
Re: constrained_value question
From: Neal Becker <ndbecker2 <at> gmail.com>
Subject: Re: constrained_value question
Newsgroups: gmane.comp.lib.boost.devel
Date: 2008-05-21 13:48:36 GMT
Subject: Re: constrained_value question
Newsgroups: gmane.comp.lib.boost.devel
Date: 2008-05-21 13:48:36 GMT
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
RSS Feed