Skip to content

Commit

Permalink
[Minor] One more compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jul 3, 2023
1 parent 4041045 commit 06f52fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libutil/cxx/util.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
Expand Down

0 comments on commit 06f52fa

Please sign in to comment.