Переглянути джерело

[Minor] One more compatibility fix

tags/3.6
Vsevolod Stakhov 11 місяці тому
джерело
коміт
06f52fae3a
Аккаунт користувача з таким Email не знайдено
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};
}

Завантаження…
Відмінити
Зберегти