Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2006-10-01 12:42:43


Johan Nilsson wrote:
> Jeff Garland wrote:
>> Johan Nilsson wrote:

>> Maybe something like this?
>>
>> -- Output --
>>
>> 23:59:59
>> Hour out of range: 0 to 23
>> Minute out of range: 0 to 59
>> Second out of range: 0 to 59
>
> Perhaps:
>
> "<unit> out of range (valid: [<min>,<max>])"
>
> would be more descriptive, or even something like:
>
> "<unit> out of range (is: <actual>, valid: [<min>, <max>])"

I know...that's an enhancement that needs to go in, but it isn't there right
now...

>> -- Code --
>
> <snip details...>
>
> [snip rest of example implementation]
>
> The example looks fine, but support for fractional seconds would also be
> needed.

Yep, I was making a quick sketch not a complete implementation....

> As for the streaming business, I believe that you're suggesting not to
> implement direct streaming support for time_of_day, e.g.:

I wasn't suggesting either way for the long run. I'm happy to include
time_of_day and streaming if we think it's useful. However, it was in my mind
that you could take the tod stuff and use it now instead of waiting around 6
months for a boost release...

Jeff


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