Boost logo

Boost Users :

Subject: Re: [Boost-users] [posix_time] time_duration operator/() overload
From: Norbert Wenzel (norbert.wenzel.lists_at_[hidden])
Date: 2010-04-04 16:41:56


On Wed, Mar 31, 2010 at 11:16 PM, vicente.botet <vicente.botet_at_[hidden]>wrote:

> ----- Original Message -----
> From: "Norbert Wenzel" <n_wenzel_at_[hidden]>
> To: <boost-users_at_[hidden]>
> Sent: Friday, March 05, 2010 9:36 AM
> Subject: [Boost-users] [posix_time] time_duration operator/() overload
>
>
> > [...]
> > I assume I'm not the first to compare time_durations so I was wondering
> > if there was a reason operator/() is not overloaded for time_duration?
> > Or if there is generally a better way to compare two durations?
>
> Maybe you are interested by the library on the review schedule
> Boost.Chrono.
>
> The library can be downloaded from
> http://www.boostpro.com/vault/index.php?action=downloadfile&filename=chrono.zip&directory=System&and the documentation is online on the sandbox
> http://svn.boost.org/svn/boost/sandbox/chrono/libs/chrono/doc/html/index.html
> .
>
> The library provides the operator/() you are looking for, but on a generic
> duration type. Please let me know if this responds to your needs or whatever
> is missing from your point of view.
>

>From what I read from the docs this seems to fit quite well. I did not have
the time to actually test this in my project so far, but this is a library
I'll keep watching and I'll try out, when I find the time.

Thanks for your message,
Norbert



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