Permalink
Browse files

Update bitfield.h

  • Loading branch information...
1 parent 6059bfe commit eef92af309950e6e45ce3c695fe5c129f1f49dc3 @Zapeth Zapeth committed on GitHub Jun 29, 2016
Showing with 4 additions and 4 deletions.
  1. +4 −4 common/bitfield.h
View
@@ -54,14 +54,14 @@ struct BitFieldMember
}
BitFieldMember& operator++() { return *this += 1; }
- BitFieldMember& operator++(int) // postfix form
+ BitFieldMember operator++(int) // postfix form
{
BitFieldMember tmp(*this);
operator++();
return tmp;
}
BitFieldMember& operator--() { return *this -= 1; }
- BitFieldMember& operator--(int) // postfix form
+ BitFieldMember operator--(int) // postfix form
{
BitFieldMember tmp(*this);
operator--();
@@ -124,14 +124,14 @@ struct BitFieldArray
}
Element& operator++() { return *this += 1; }
- Element& operator++(int) // postfix form
+ Element operator++(int) // postfix form
{
Element tmp(*this);
operator++();
return tmp;
}
Element& operator--() { return *this -= 1; }
- Element& operator--(int) // postfix form
+ Element operator--(int) // postfix form
{
Element tmp(*this);
operator--();

0 comments on commit eef92af

Please sign in to comment.