mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 11:15:34 +08:00
fix overload ambiguity
This commit is contained in:
parent
f50db936e2
commit
c9f6bc8487
@ -294,14 +294,14 @@ bool common_helpers::dir_exist(const std::filesystem::path &dirpath)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool common_helpers::dir_exist(const std::string_view &dirpath)
|
||||
bool common_helpers::dir_exist(const std::string &dirpath)
|
||||
{
|
||||
if (dirpath.empty()) return false;
|
||||
std::filesystem::path path(dirpath);
|
||||
return dir_exist(path);
|
||||
}
|
||||
|
||||
bool common_helpers::dir_exist(const std::wstring_view &dirpath)
|
||||
bool common_helpers::dir_exist(const std::wstring &dirpath)
|
||||
{
|
||||
if (dirpath.empty()) return false;
|
||||
std::filesystem::path path(dirpath);
|
||||
|
@ -55,7 +55,7 @@ bool file_size(const std::string &filepath, size_t &size);
|
||||
bool file_size(const std::wstring &filepath, size_t &size);
|
||||
|
||||
bool dir_exist(const std::filesystem::path &dirpath);
|
||||
bool dir_exist(const std::string_view &dirpath);
|
||||
bool dir_exist(const std::wstring_view &dirpath);
|
||||
bool dir_exist(const std::string &dirpath);
|
||||
bool dir_exist(const std::wstring &dirpath);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user