mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
attotime: Make operator+ and operator- constexpr
This commit is contained in:
parent
87b1d66759
commit
dedfb9fcd7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user