|
Boost Users : |
Subject: Re: [Boost-users] ICL & time intervals
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2014-03-19 00:38:34
AMDG
On 03/18/2014 02:52 AM, Oodini wrote:
> Hello,
>
> Is it possible to define with ICL the time range [23:00 -> 05:00] with only one interval ?
>
For this to work you'd need 23:00 < 05:00, which naturally
will cause problems for the interval [05:00 -> 23:00].
Basically there's no wat to make a circular ordering
that is a also a strict weak ordering.
I also doubt that the library would allow you to create
a discontinuous interval saying that [23:00 -> 05:00]
is really the union of [00:00 -> 05:00] and [23:00 -> 24:00)
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net