Skip to content

Commit

Permalink
util/HexFormat: add non-const overload
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Sep 12, 2023
1 parent 192cc28 commit fecb8e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/util/HexFormat.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit fecb8e5

Please sign in to comment.