Boost logo

Boost :

From: David Bergman (davidb_at_[hidden])
Date: 2002-08-27 10:59:51


People are thinking about your construct as a set, which is "open" in
its nature.

I suggested to borrow some terms and ideas from the area of Finite
Domain Constraint-solving. That proposal was apparently ignored, due to
the introduction of unknowns and overall whimsical appearance ;-)

I think that using terms like "domain" or "finite_domain" with the
semantics from Constraint solving would clarify that this construct,
although being extremely useful, is not a regular "set".

/David

-----Original Message-----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of spamjunk_at_[hidden]
Sent: Tuesday, August 27, 2002 8:47 AM
To: boost_at_[hidden]
Subject: RE: [boost] discrete_set class

Ok, this is my fault. As Joel has pointed out, I neglected to provide
documentation. I apologize and will upload some as soon as I can. For
now, the problem with your examples is the class expects the values of
the elements to be in the range [LO, HI]. You are trying to use values
outside the range. My understanding of C++ is that it is undefined
behavior to convert an int to an enum when it is outside the enum's
range.

pop-server.stny.rr.com

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


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