Fix the currently-unused postfix signed_int::operator++ to do what you'd expect
This commit is contained in:
parent
307252e23a
commit
d1f51dd643
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ struct signed_int {
|
||||||
operator int32_t()const { return value; }
|
operator int32_t()const { return value; }
|
||||||
template<typename T>
|
template<typename T>
|
||||||
signed_int& operator=( const T& v ) { value = v; return *this; }
|
signed_int& operator=( const T& v ) { value = v; return *this; }
|
||||||
signed_int& operator++(int){ ++value; return *this; }
|
signed_int operator++(int) { return value++; }
|
||||||
signed_int& operator++(){ ++value; return *this; }
|
signed_int& operator++(){ ++value; return *this; }
|
||||||
|
|
||||||
int32_t value;
|
int32_t value;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue