From: Peter van Dijk Date: Fri, 20 Jun 2025 10:41:38 +0000 (+0200) Subject: add boost::container::string version of burtleCI X-Git-Tag: dnsdist-2.1.0-alpha0~6^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1e2b0dac1fb79c6321a9b59dd516fd1e30d8816;p=thirdparty%2Fpdns.git add boost::container::string version of burtleCI --- 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 +}