Subject: [Boost-users] [boost-users][DateTime] crash with time_duration
From: Igor R (boost.lists_at_[hidden])
Date: 2008-09-08 14:31:18


Hi,

The following code crashes (MSVC2005, boost1.36):

//....
time_duration td = hours(25);
cout << td;

It seems that operator <<() uses to_tm() function, and the latter sets
tm_hour = 25, which causes an assertion in CRT _expandtime() and
program termination.

Is this desired behavior / known issue / unknown bug?

Thanks,

Igor'.