mirror of
https://github.com/holub/mame
synced 2025-06-07 13:23:50 +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 */
|
/** 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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user