util/HexFormat: add non-const overload

This commit is contained in:
Max Kellermann 2023-08-07 12:31:24 +02:00 committed by Max Kellermann
parent 6953800628
commit daf935d310
1 changed files with 8 additions and 0 deletions

View File

@ -82,3 +82,11 @@ HexFormat(std::span<const std::byte, size> input) noexcept
HexFormat(output.data(), input);
return output;
}
template<std::size_t size>
constexpr auto
HexFormat(std::span<std::byte, size> input) noexcept
{
std::span<const std::byte, size> const_input{input};
return HexFormat(const_input);
}