From dedfb9fcd7610c7ad119dc681662b6281b67b73e Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 9 Aug 2022 10:41:25 -0400 Subject: [PATCH] attotime: Make operator+ and operator- constexpr --- src/emu/attotime.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emu/attotime.h b/src/emu/attotime.h index e056ee90034..2b625459386 100644 --- a/src/emu/attotime.h +++ b/src/emu/attotime.h @@ -180,7 +180,7 @@ public: //************************************************************************** /** handle addition between two attotimes */ -inline attotime operator+(const attotime &left, const attotime &right) noexcept +inline constexpr attotime operator+(const attotime &left, const attotime &right) noexcept { attotime result; @@ -230,7 +230,7 @@ inline attotime &attotime::operator+=(const attotime &right) noexcept /** handle subtraction between two attotimes */ -inline attotime operator-(const attotime &left, const attotime &right) noexcept +inline constexpr attotime operator-(const attotime &left, const attotime &right) noexcept { attotime result;