Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2005-02-15 07:58:25


On Mon, 14 Feb 2005 09:49:38 -0500, Donato Petrino wrote
> Hello,
>
> I noticed that the "operator/()"
> isn't declared "const", I think this is
> an error. If so, can I correct it in my copy
> of boost (1_32) and hope that in the next version
> this is fixed?

You are correct -- should be in the next release.

> Further, I miss the "operator/(const time_duration&)",
> is there a reason why there isn't such a thing?

The reason is that I guess I didn't see the utility. What does it mean to
divide 10 minutes by 5 minutes? AFAIK it the result must be a dimensionless
ratio. In which case it might be better to just get the values and compare them.

> BTW, I just read an old thread (Sep. 2003) about
> double arithmetic for the time_duration operators '*' and
> '/'. What's the plan here, is it going to stay
> 'int'-based (because I wrote my own double-based ones,
> not really nice I have to say).

I'm not planning on adding double arithmetic.

Jeff


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net