From: Vsevolod Stakhov Date: Mon, 3 Jul 2023 22:00:12 +0000 (+0100) Subject: [Minor] One more compatibility fix X-Git-Tag: 3.6~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06f52fae3a0e57ee8d01aaa974139f3b31bf296c;p=thirdparty%2Frspamd.git [Minor] One more compatibility fix --- diff --git a/src/libutil/cxx/util.hxx b/src/libutil/cxx/util.hxx index df8d99b6c6..2d009c6cd1 100644 --- a/src/libutil/cxx/util.hxx +++ b/src/libutil/cxx/util.hxx @@ -105,7 +105,7 @@ inline auto string_split_on(const S &input, std::string_view::value_type chr) -> while (*pos == chr && pos != input.end()) { ++pos; } - auto last = std::string_view{pos, std::end(input)}; + auto last = std::string_view{pos, static_cast(std::distance(pos, std::end(input)))}; return {first, last}; }