0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-04 21:08:57 +01:00

ircd::fs: Use vector_view for make_path related.

This commit is contained in:
Jason Volk 2018-05-24 19:11:05 -07:00
parent 184684264b
commit 4cb6845ac1
2 changed files with 4 additions and 4 deletions

View file

@ -68,7 +68,7 @@ namespace ircd::fs
const char *get(index) noexcept;
const char *name(index) noexcept;
std::string make_path(const std::initializer_list<string_view> &);
std::string make_path(const vector_view<const string_view> &);
bool exists(const string_view &path);
bool is_dir(const string_view &path);

View file

@ -25,7 +25,7 @@ namespace ircd::fs
filesystem::path path(std::string);
filesystem::path path(const string_view &);
filesystem::path path(const std::initializer_list<string_view> &);
filesystem::path path(const vector_view<const string_view> &);
}
/// Non-null when aio is available for use
@ -457,7 +457,7 @@ catch(const filesystem::filesystem_error &e)
}
std::string
ircd::fs::make_path(const std::initializer_list<string_view> &list)
ircd::fs::make_path(const vector_view<const string_view> &list)
{
filesystem::path ret;
for(const auto &s : list)
@ -467,7 +467,7 @@ ircd::fs::make_path(const std::initializer_list<string_view> &list)
}
filesystem::path
ircd::fs::path(const std::initializer_list<string_view> &list)
ircd::fs::path(const vector_view<const string_view> &list)
{
filesystem::path ret;
for(const auto &s : list)