[std-interval] separate bool_set proposal available
Hervé Brönnimann
hbr at poly.edu
Wed Jun 21 16:00:12 PDT 2006
Ron:
On Jun 21, 2006, at 2:13 PM, Ron Avitzur wrote:
> In this case, if interval defines
>
> bool_set interval::operator<(interval&, interval&)
>
> and bool_set offers an implicit conversion to bool, set<interval>
> will compile without error and have an unhandled exception if any of
> the intervals overlap.
Please note that in the current (working) version of the interval
proposal, we do not define an operator< for intervals. Instead, we
offer the "bool_set operator<(interval,interval)" in a separate
namespace bool_set_ops. Presumably, if the user includes this
namespace, he/she is aware of bool_set and how it should be used wrt
exceptions. (BTW, there are also other namespaces for certainly and
possibly comparisons.) Without this, you'll get a compile-time
failure when using set<interval>. Hope that answers your concerns,
--
Hervé Brönnimann
CIS, Polytechnic University
hbr at poly.edu
More information about the Std-interval
mailing list