From 98baba6ce0a431117c80b4c3076e54baf236a4f0 Mon Sep 17 00:00:00 2001 From: Gene Hightower Date: Mon, 3 Jun 2024 14:45:11 -0700 Subject: [PATCH] what to say about this --- DNS-iostream.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DNS-iostream.hpp b/DNS-iostream.hpp index 85d5880..d953624 100644 --- a/DNS-iostream.hpp +++ b/DNS-iostream.hpp @@ -40,11 +40,12 @@ inline std::ostream& operator<<(std::ostream& os, DNS::RR_TLSA const& rr_tlsa) os << "TLSA " << rr_tlsa.cert_usage() << ' ' << rr_tlsa.selector() << ' ' << rr_tlsa.matching_type() << ' '; - for (auto const ch : rr_tlsa.assoc_data()) { + for (auto const& ch : rr_tlsa.assoc_data()) { auto const lo = ch & 0xF; auto const hi = (ch >> 4) & 0xF; - auto constexpr hex_digits = "0123456789abcdef"; + using namespace std::literals::string_view_literals; + auto constexpr hex_digits{"0123456789abcdef"sv}; os << hex_digits[hi] << hex_digits[lo]; } -- 2.11.4.GIT