瀏覽代碼

[Minor] One more compatibility fix

tags/3.6
Vsevolod Stakhov 11 月之前
父節點
當前提交
06f52fae3a
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/libutil/cxx/util.hxx

+ 1
- 1
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};
}

Loading…
取消
儲存