DateTime: Request for additional time_duration methods
27 Jun
2008
27 Jun
'08
5:02 a.m.
time_duration in Boost 1.35.0 has an is_negative() method. I need exactly the opposite: time_duration td; while (td.is_positive()) { // reduce td in some way } I am aware, that I can use td.ticks()>0, but since is_negative() already exists, it would be nice to have also the following methods for completeness and symmetry: bool time_duration::is_positive() const bool time_duration::is_zero() const So for all non special value time_duration instances one of the above methods would return true, the other two false. Best regards, Peter.
5996
Age (days ago)
5996
Last active (days ago)
0 comments
1 participants
participants (1)
-
Peter Klotz