From 0c9fab877bdde818b465428062be37c2d6d28899 Mon Sep 17 00:00:00 2001 From: eyalz800 Date: Mon, 8 May 2023 19:08:10 +0300 Subject: [PATCH] Make zpp::bits::bytes more friendly with signed size. --- zpp_bits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zpp_bits.h b/zpp_bits.h index 4edb6d9..da42b52 100644 --- a/zpp_bits.h +++ b/zpp_bits.h @@ -972,8 +972,8 @@ class bytes { } - constexpr explicit bytes(std::span items, std::size_t size) : - m_items(items.data()), m_size(size) + constexpr explicit bytes(std::span items, auto size) : + m_items(items.data()), m_size(std::size_t(size)) { }