🐛 fixed -Weffc++ warnings

This commit is contained in:
Niels Lohmann 2017-02-01 15:13:21 +01:00
parent b210f2dbf4
commit c75865d88c
2 changed files with 12 additions and 8 deletions

View file

@ -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--()
@ -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)

View file

@ -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--()
@ -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)