diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-03 23:00:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-03 23:00:12 +0100 |
commit | 06f52fae3a0e57ee8d01aaa974139f3b31bf296c (patch) | |
tree | aeb94dc6bebcd291402e225189abffd0af3f0c24 /src/libutil/cxx | |
parent | 4041045abc00aa8f8c0ae211b0bf1648ce44029d (diff) | |
download | rspamd-06f52fae3a0e57ee8d01aaa974139f3b31bf296c.tar.gz rspamd-06f52fae3a0e57ee8d01aaa974139f3b31bf296c.zip |
[Minor] One more compatibility fix
Diffstat (limited to 'src/libutil/cxx')
-rw-r--r-- | src/libutil/cxx/util.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/cxx/util.hxx b/src/libutil/cxx/util.hxx index df8d99b6c..2d009c6cd 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::size_t>(std::distance(pos, std::end(input)))}; return {first, last}; } |