diff options
Diffstat (limited to 'src/libutil')
-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 dd8ef0ee6..df8d99b6c 100644 --- a/src/libutil/cxx/util.hxx +++ b/src/libutil/cxx/util.hxx @@ -101,7 +101,7 @@ inline auto string_split_on(const S &input, std::string_view::value_type chr) -> auto pos = std::find(std::begin(input), std::end(input), chr); if (pos != input.end()) { - auto first = std::string_view{std::begin(input), pos}; + auto first = std::string_view{std::begin(input), static_cast<std::size_t>(std::distance(std::begin(input), pos))}; while (*pos == chr && pos != input.end()) { ++pos; } |