Skip to content

Commit

Permalink
Merge pull request #515 from gouletr/fix/unused-private-member-warning
Browse files Browse the repository at this point in the history
Fix warning unused private member itsValueItEnd
  • Loading branch information
AzothAmmo authored Oct 5, 2018
2 parents b883b47 + 3d5d20d commit 9ccfaa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cereal/archives/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ namespace cereal
}

Iterator(ValueIterator begin, ValueIterator end) :
itsValueItBegin(begin), itsValueItEnd(end), itsIndex(0), itsType(Value)
itsValueItBegin(begin), itsIndex(0), itsType(Value)
{
if( std::distance( begin, end ) == 0 )
itsType = Null_;
Expand Down Expand Up @@ -543,7 +543,7 @@ namespace cereal

private:
MemberIterator itsMemberItBegin, itsMemberItEnd; //!< The member iterator (object)
ValueIterator itsValueItBegin, itsValueItEnd; //!< The value iterator (array)
ValueIterator itsValueItBegin; //!< The value iterator (array)
size_t itsIndex; //!< The current index of this iterator
enum Type {Value, Member, Null_} itsType; //!< Whether this holds values (array) or members (objects) or nothing
};
Expand Down

0 comments on commit 9ccfaa0

Please sign in to comment.