
5 Mar
2010
5 Mar
'10
6:13 p.m.
On 03/05/2010 01:05 PM, Igor R wrote:
What I'm currently doing is computing the proportions via
time_duration::total_*()
which works fine, but leads to some coding effort, since I'll have to cast one result to a real number to avoid integer division and some checks to prevent /0.
Well, you can do all this work once - in the overloaded operator :).
I was just wondering, if this overload was left out on purpose. From your answer I'd guess it was no purpose, so I'll write this one myself the next time I'll need it. thanks, Norbert