
28 Sep
2005
28 Sep
'05
3:22 p.m.
On 09/28/2005 09:33 AM, Rob Stewart wrote: [snip]
I'm confused. I thought the whole point of your library was to create an object that *has* a value and to constrain that value to be a member of a prescribed set. That's how you can add them together, increment them, etc. Thus, "constrained_value" is exactly the right name.
This sounds *almost* like the range_all mentioned in: http://article.gmane.org/gmane.comp.lib.boost.devel/117761 The difference, AFAICT, as that each element is the "prescribed set" is an enumeration instead of some contiguous subset of an integral value like int or long. Maybe the common parts could be factored out? I could re-upload the range_all.zip to the vault if you're interested.