
17 Jun
2009
17 Jun
'09
12:09 p.m.
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 hours. 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