Skip to content

Commit a4f34f5

Browse files
Merge pull request diffblue#195 from diffblue/bugfix/missing-const_cast
Fixed missing const_cast
2 parents 9fb6faf + 62cb7f3 commit a4f34f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/util/serializer.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,10 @@ class serializert
632632

633633
void write(serializert &serializer)
634634
{
635-
serializer.serialize("value", *it);
635+
// We are only going to write this to the store but it needs to be
636+
// non-const to do that
637+
serializer.serialize(
638+
"value", const_cast<typename collectiont::value_type &>(*it));
636639
++it;
637640
}
638641
};

0 commit comments

Comments
 (0)