From b1e2b0dac1fb79c6321a9b59dd516fd1e30d8816 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 20 Jun 2025 12:41:38 +0200 Subject: [PATCH] add boost::container::string version of burtleCI --- pdns/burtle.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/burtle.hh b/pdns/burtle.hh index 7ec333d4b1..e2ce4e0c09 100644 --- a/pdns/burtle.hh +++ b/pdns/burtle.hh @@ -183,3 +183,8 @@ inline uint32_t burtleCI(const std::string &k, uint32_t initval) { return burtleCI(reinterpret_cast(k.data()), k.length(), initval); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast): can't static_cast because of sign difference } + +inline uint32_t burtleCI(const boost::container::string &k, uint32_t initval) +{ + return burtleCI(reinterpret_cast(k.data()), k.length(), initval); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast): can't static_cast because of sign difference +} -- 2.47.2