fix TypeStore maintenance

This commit is contained in:
Michael Davidsaver
2022-12-14 12:25:46 -08:00
parent c6eec978fe
commit c7b4650ba1
2 changed files with 90 additions and 2 deletions
+3 -1
View File
@@ -90,7 +90,9 @@ void from_wire(Buffer& buf, std::vector<FieldDesc>& descs, TypeStore& cache, uns
return;
} else {
cache.emplace(key, descs); // copies descs
cache.emplace(std::piecewise_construct,
std::make_tuple(key),
std::make_tuple(descs.begin()+index, descs.end()));
descs[index].parent_index = 0u; // our caller will set if actually is a parent.
}