Boost logo

Boost :

Subject: Re: [boost] [timer] Boost Timer Library Version 2
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2011-09-30 12:24:10


Le 30/09/11 18:06, Beman Dawes a écrit :
> By the way, there was a late change to C++11 to add noexcept to the
> chrono clock's now() function. Can the Boost.Chrono now() function
> throw? The timer code assumes it doesn't.
I have added already noexcept in the trunk. Now not throws, but as we
can have internal errors on the used library. In case of errors now()
will assert. I don't know if this is the correct way to manage with this
kind of functions.

If you want to manage the possible errors you could use now(ec);

Best,
Vicente


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