Skip to content

Commit

Permalink
🐛 fixed -Weffc++ warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Feb 1, 2017
1 parent b210f2d commit c75865d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8532,10 +8532,11 @@ class basic_json
return *this;
}

primitive_iterator_t& operator++(int)
primitive_iterator_t operator++(int)
{
auto result = *this;
m_it++;
return *this;
return result;
}

primitive_iterator_t& operator--()
Expand All @@ -8544,10 +8545,11 @@ class basic_json
return *this;
}

primitive_iterator_t& operator--(int)
primitive_iterator_t operator--(int)
{
auto result = *this;
m_it--;
return *this;
return result;
}

primitive_iterator_t& operator+=(difference_type n)
Expand Down
10 changes: 6 additions & 4 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -8532,10 +8532,11 @@ class basic_json
return *this;
}

primitive_iterator_t& operator++(int)
primitive_iterator_t operator++(int)
{
auto result = *this;
m_it++;
return *this;
return result;
}

primitive_iterator_t& operator--()
Expand All @@ -8544,10 +8545,11 @@ class basic_json
return *this;
}

primitive_iterator_t& operator--(int)
primitive_iterator_t operator--(int)
{
auto result = *this;
m_it--;
return *this;
return result;
}

primitive_iterator_t& operator+=(difference_type n)
Expand Down

0 comments on commit c75865d

Please sign in to comment.