Skip to content
Permalink
Browse files
remove extraneous serde template parameter
  • Loading branch information
jmalkin committed Mar 24, 2022
1 parent 49379e8 commit 591955656e6f4d2765596ab453dc27393246995d
Showing 2 changed files with 3 additions and 2 deletions.
@@ -349,7 +349,8 @@ class quantiles_sketch {
* This version is for fixed-size arithmetic types (integral and floating point).
* @return size in bytes needed to serialize this sketch
*/
template<typename SerDe = serde<T>, typename TT = T, typename std::enable_if<std::is_arithmetic<TT>::value, int>::type = 0>
//template<typename SerDe = serde<T>, typename TT = T, typename std::enable_if<std::is_arithmetic<TT>::value, int>::type = 0>
template<typename TT = T, typename std::enable_if<std::is_arithmetic<TT>::value, int>::type = 0>
size_t get_serialized_size_bytes() const;

/**
@@ -543,7 +543,7 @@ const T& quantiles_sketch<T, C, A>::get_max_value() const {

// implementation for fixed-size arithmetic types (integral and floating point)
template<typename T, typename C, typename A>
template<typename S, typename TT, typename std::enable_if<std::is_arithmetic<TT>::value, int>::type>
template<typename TT, typename std::enable_if<std::is_arithmetic<TT>::value, int>::type>
size_t quantiles_sketch<T, C, A>::get_serialized_size_bytes() const {
if (is_empty()) { return EMPTY_SIZE_BYTES; }
return DATA_START + ((get_num_retained() + 2) * sizeof(TT));

0 comments on commit 5919556

Please sign in to comment.