Skip to content
Permalink
Browse files
better for transition
  • Loading branch information
AlexanderSaydakov committed Mar 25, 2022
1 parent db58348 commit 7f98c9ea313addc67b57139553697c16f2f54678
Showing 1 changed file with 4 additions and 4 deletions.
@@ -242,7 +242,7 @@ class frequent_items_sketch {
* @param os output stream
* @param instance of a SerDe
*/
template<typename SerDe = serde<T>>
template<typename SerDe = S>
void serialize(std::ostream& os, const SerDe& sd = SerDe()) const;

// This is a convenience alias for users
@@ -270,7 +270,7 @@ class frequent_items_sketch {
* @param instance of a SerDe
* @return serialized sketch as a vector of bytes
*/
template<typename SerDe = serde<T>>
template<typename SerDe = S>
vector_bytes serialize(unsigned header_size_bytes = 0, const SerDe& sd = SerDe()) const;

/**
@@ -290,7 +290,7 @@ class frequent_items_sketch {
* @param instance of an Allocator
* @return an instance of the sketch
*/
template<typename SerDe = serde<T>>
template<typename SerDe = S>
static frequent_items_sketch deserialize(std::istream& is, const SerDe& sd = SerDe(), const A& allocator = A());

/**
@@ -312,7 +312,7 @@ class frequent_items_sketch {
* @param instance of an Allocator
* @return an instance of the sketch
*/
template<typename SerDe = serde<T>>
template<typename SerDe = S>
static frequent_items_sketch deserialize(const void* bytes, size_t size, const SerDe& sd = SerDe(), const A& allocator = A());

/**

0 comments on commit 7f98c9e

Please sign in to comment.