Derecho-Project / derecho

The main code repository for the Derecho project.
BSD 3-Clause "New" or "Revised" License
186 stars 47 forks source link

A bugfix for std::vector deserializer. #270

Closed songweijia closed 7 months ago

songweijia commented 7 months ago

The in-place deserializer for std::vector (mutils::from_bytes_no_alloc()) has a bug, where the 'const' quialifier needs to be casted off from type T when creating the context_ptr. Otherwise, it's impossible to add entries to it during deserialization. The deserializer for std::map/unordered_map has this correct.