Boost logo

Boost :

Subject: Re: [boost] [date_time] [#1861] Change for the default duration format
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2009-06-17 08:09:45

Andrey Semashev wrote:
> What exactly is wrong?

Streaming of a time duration is broken; IMHO the snippet below shouldn't be
asserted on. To make things consistent, alternatives could be to impose a
limit of 100 hours in the concept of a time duration, to introduce a
limited_time_duration concept, to follow ISO 8601, or to allow more than 99

time_duration a = hours( 10 ); // OK
std::cout << a << std::endl; // OK

time_duration b = hours( 100 ); // OK
std::cout << b << std::endl; // Assertion failure

Kind regards,

Rutger ter Borg

Boost list run by bdawes at, gregod at, cpdaniel at, john at