From 5d7ae2d2791c0244a221872a7ac62627abb81896 Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Sat, 2 Nov 2019 20:36:03 +0000 Subject: Adding support for hidden (anonymity) txpool --- contrib/epee/include/span.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/epee/include/span.h b/contrib/epee/include/span.h index e100452ca..59895535f 100644 --- a/contrib/epee/include/span.h +++ b/contrib/epee/include/span.h @@ -110,7 +110,8 @@ namespace epee constexpr std::size_t size() const noexcept { return len; } constexpr std::size_t size_bytes() const noexcept { return size() * sizeof(value_type); } - const T &operator[](size_t idx) const { return ptr[idx]; } + T &operator[](size_t idx) noexcept { return ptr[idx]; } + const T &operator[](size_t idx) const noexcept { return ptr[idx]; } private: T* ptr; -- cgit v1.2.3