attotime: Make operator+ and operator- constexpr

This commit is contained in:
AJR 2022-08-09 10:41:25 -04:00
parent 87b1d66759
commit dedfb9fcd7

View File

@ -180,7 +180,7 @@ public:
//************************************************************************** //**************************************************************************
/** handle addition between two attotimes */ /** 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; attotime result;
@ -230,7 +230,7 @@ inline attotime &attotime::operator+=(const attotime &right) noexcept
/** handle subtraction between two attotimes */ /** 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; attotime result;