Skip to content

Commit 73fba6e

Browse files
Fixed missing const_cast
1 parent 2716410 commit 73fba6e

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)