Skip to content

Commit ab347d5

Browse files
Merge pull request #195 from diffblue/bugfix/missing-const_cast
Fixed missing const_cast
2 parents eaf97f6 + 73fba6e commit ab347d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/util/serializer.h

+4-1
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)