mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 02:44:10 +00:00
fixed my_int::operator--
[SVN r9208]
This commit is contained in:
parent
8e92bcf1b2
commit
272025bb07
@ -192,7 +192,7 @@ public:
|
||||
my_int2() { }
|
||||
my_int2(int x) : m_int(x) { }
|
||||
my_int2& operator++() { ++m_int; return *this; }
|
||||
my_int2& operator--() { ++m_int; return *this; }
|
||||
my_int2& operator--() { --m_int; return *this; }
|
||||
bool operator==(const my_int2& x) const { return m_int == x.m_int; }
|
||||
private:
|
||||
int m_int;
|
||||
@ -211,7 +211,7 @@ public:
|
||||
my_int3& operator++() { ++m_int; return *this; }
|
||||
my_int3& operator+=(std::ptrdiff_t n) { m_int += n; return *this; }
|
||||
std::ptrdiff_t operator-(const my_int3& x) { return m_int - x.m_int; }
|
||||
my_int3& operator--() { ++m_int; return *this; }
|
||||
my_int3& operator--() { --m_int; return *this; }
|
||||
bool operator==(const my_int3& x) const { return m_int == x.m_int; }
|
||||
bool operator<(const my_int3& x) const { return m_int < x.m_int; }
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user