Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
iceseer committed Nov 13, 2023
1 parent 45d5176 commit cd343c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/scale/encoder/primitives.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <tuple>
#include <type_traits>
#include <vector>
#include <span>

#include "utils/struct_to_tuple.hpp"

Expand All @@ -35,7 +36,7 @@ namespace kagome::scale {
constexpr void encode(const FN &func, const std::pair<F, S> &p);

template <typename F, typename T, ssize_t S>
constexpr void encode(const F &func, const gsl::span<T, S> &c);
constexpr void encode(const F &func, const std::span<T, S> &c);

template <typename F, typename T, size_t size>
constexpr void encode(const F &func, const std::array<T, size> &c);
Expand Down Expand Up @@ -344,7 +345,7 @@ namespace kagome::scale {
}

template <typename F, typename T, ssize_t S>
constexpr void encode(const F &func, const gsl::span<T, S> &c) {
constexpr void encode(const F &func, const std::span<T, S> &c) {
if constexpr (S == -1) {
encodeCompact(func, c.size());
encode(func, c.begin(), c.end());
Expand Down

0 comments on commit cd343c2

Please sign in to comment.