Skip to content

Commit

Permalink
Merge pull request #195 from diffblue/bugfix/missing-const_cast
Browse files Browse the repository at this point in the history
Fixed missing const_cast
  • Loading branch information
NathanJPhillips authored Sep 19, 2017
2 parents eaf97f6 + 73fba6e commit ab347d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,10 @@ class serializert

void write(serializert &serializer)
{
serializer.serialize("value", *it);
// We are only going to write this to the store but it needs to be
// non-const to do that
serializer.serialize(
"value", const_cast<typename collectiont::value_type &>(*it));
++it;
}
};
Expand Down

0 comments on commit ab347d5

Please sign in to comment.