Fix StronglyTypedInteger::operator%=

This commit is contained in:
Maxime Coste 2013-11-11 19:11:17 +00:00
parent 6b77860fc0
commit 83a6375263

View File

@ -53,12 +53,12 @@ public:
RealType operator--(int) RealType operator--(int)
{ RealType backup(static_cast<RealType&>(*this)); --m_value; return backup; } { RealType backup(static_cast<RealType&>(*this)); --m_value; return backup; }
constexpr RealType operator-() { return RealType(-m_value); } constexpr RealType operator-() const { return RealType(-m_value); }
constexpr RealType operator%(RealType other) const constexpr RealType operator%(RealType other) const
{ return RealType(m_value % other.m_value); } { return RealType(m_value % other.m_value); }
constexpr RealType operator%=(RealType other) RealType& operator%=(RealType other)
{ m_value %= other.m_value; return static_cast<RealType&>(*this); } { m_value %= other.m_value; return static_cast<RealType&>(*this); }
constexpr bool operator==(RealType other) const constexpr bool operator==(RealType other) const