fix postfix StronglyTypedInteger::operator{++,--}

This commit is contained in:
Maxime Coste 2012-10-02 14:19:45 +02:00
parent 514aeead63
commit 946b4650b6

View File

@ -42,10 +42,10 @@ public:
{ --m_value; return static_cast<RealType&>(*this); }
RealType operator++(int)
{ RealType backup(*this); ++m_value; return backup; }
{ RealType backup(static_cast<RealType&>(*this)); ++m_value; return backup; }
RealType operator--(int)
{ RealType backup(*this); --m_value; return backup; }
{ RealType backup(static_cast<RealType&>(*this)); --m_value; return backup; }
constexpr RealType operator-() { return RealType(-m_value); }