event/Loop: add noexcept

This commit is contained in:
Max Kellermann 2020-12-01 20:10:52 +01:00
parent ff8b5bc61b
commit 8050394003

View File

@ -242,7 +242,7 @@ duration_cast_round_up(std::chrono::duration<Rep, Period> d) noexcept
* value (= never times out) is translated to the magic value -1.
*/
static constexpr int
ExportTimeoutMS(Event::Duration timeout)
ExportTimeoutMS(Event::Duration timeout) noexcept
{
return timeout >= timeout.zero()
? int(duration_cast_round_up<std::chrono::milliseconds>(timeout).count())