From c9f6bc8487684dfb5a4f7d5b9f3eb43499267a26 Mon Sep 17 00:00:00 2001 From: otavepto Date: Sun, 14 Apr 2024 18:47:12 +0200 Subject: [PATCH] fix overload ambiguity --- helpers/common_helpers.cpp | 4 ++-- helpers/common_helpers/common_helpers.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helpers/common_helpers.cpp b/helpers/common_helpers.cpp index 57c0d358..486e419a 100644 --- a/helpers/common_helpers.cpp +++ b/helpers/common_helpers.cpp @@ -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); diff --git a/helpers/common_helpers/common_helpers.hpp b/helpers/common_helpers/common_helpers.hpp index ab27c9b4..4be70a66 100644 --- a/helpers/common_helpers/common_helpers.hpp +++ b/helpers/common_helpers/common_helpers.hpp @@ -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); }