diff options
author | jeffro256 <jeffro256@tutanota.com> | 2023-11-27 19:28:08 -0600 |
---|---|---|
committer | jeffro256 <jeffro256@tutanota.com> | 2023-11-28 14:06:24 -0600 |
commit | 2525200185e6b470c6e6cec3c3c8044a0eb0ecc0 (patch) | |
tree | a2548c11d8729e6e128ff5d1f2b6057bce4f2c1b /tests/unit_tests/scaling_2021.cpp | |
parent | serialization: fix infinite loops and clean up dispatching (diff) | |
download | monero-2525200185e6b470c6e6cec3c3c8044a0eb0ecc0.tar.xz |
serialization: remove container wrappers and serialize directly
Some downstream code (most notably PR https://github.com/UkoeHB/monero/pull/25) wants to use the src/serialization lib
for storing information persistently. When one builds classes/machines wishing to serialize containers, they must use
the `serializable_*` container classes. In this case, this makes the Seraphis library code unnecessarily tightly coupled
with the src/serialization code since one cannot swap out their type of storage format without major refactoring of class
field types. By serializing STL containers directly, we can abstract the serialization details away, making for much
cleaner design. Also small bonus side effect of this change is that STL containers with custom Comparators, Allocators,
and Hashers are serializable. `std::multimap` is added to the list of serializable containers.
Depends upon https://github.com/monero-project/monero/pull/9069.
Diffstat (limited to 'tests/unit_tests/scaling_2021.cpp')
0 files changed, 0 insertions, 0 deletions