Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-04-04 00:52:43


FYI


attached mail follows:


Joel and Dave,

I thought I pointed this out previously but maybe I didn't. There is a bug
in the date_time library. Pls see
"C:\boost\boost\date_time\time_duration.hpp" line 95. It has:

return static_cast<sec_type>(ticks()/ticks_per_second()) % 60;

But this is incorrect. It should be:

return static_cast<sec_type>((ticks()/ticks_per_second()) % 60);

(ie, the static cast needs to be on the entire result). I can send over
demo code of this bug if you need it.

Im finally getting around to upgrading to the 1.32.0 version of boost
library from the boost website and noticed this.

Hope that helps,

Tom


-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk