aboutsummaryrefslogtreecommitdiff
path: root/src/serialization/pair.h
diff options
context:
space:
mode:
authorjeffro256 <jeffro256@tutanota.com>2023-11-17 02:19:45 -0600
committerjeffro256 <jeffro256@tutanota.com>2023-11-18 03:47:55 -0600
commita11e03afa63c5ed85715d7e67f6c2698f10cd427 (patch)
treea9b5b8847a2c1fc2fab6bef6dae27208f38917b5 /src/serialization/pair.h
parentMerge pull request #9026 (diff)
downloadmonero-a11e03afa63c5ed85715d7e67f6c2698f10cd427.tar.xz
serialization: fix infinite loops and clean up dispatching
Resolves #8687
Diffstat (limited to 'src/serialization/pair.h')
-rw-r--r--src/serialization/pair.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialization/pair.h b/src/serialization/pair.h
index f21041fe8..888033fb9 100644
--- a/src/serialization/pair.h
+++ b/src/serialization/pair.h
@@ -47,7 +47,7 @@ namespace serialization
typename std::enable_if<!use_pair_varint<T>(), bool>::type
serialize_pair_element(Archive& ar, T& e)
{
- return ::do_serialize(ar, e);
+ return do_serialize(ar, e);
}
template<typename Archive, typename T>
@@ -57,7 +57,7 @@ namespace serialization
static constexpr const bool previously_varint = std::is_same<uint64_t, T>();
if (!previously_varint && ar.varint_bug_backward_compatibility_enabled() && !typename Archive::is_saving())
- return ::do_serialize(ar, e);
+ return do_serialize(ar, e);
ar.serialize_varint(e);
return true;
}