diff options
author | 2022-11-27 14:44:34 +1100 | |
---|---|---|
committer | 2022-11-27 14:44:34 +1100 | |
commit | 7b88d53b617ffff3d8ee4e36838e04a7838a56c7 (patch) | |
tree | b0d893f9c141d633ad7dfef6cd4267da7eb7cbe0 /src/lib/util/path.h | |
parent | b7f9c64e6bd4274ade0b60d1c56c1cab7248cd52 (diff) |
util/path.h: Fixed narrowing warning from older versions of clang.
Diffstat (limited to 'src/lib/util/path.h')
-rw-r--r-- | src/lib/util/path.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/path.h b/src/lib/util/path.h index b0af408973d..83785d0999f 100644 --- a/src/lib/util/path.h +++ b/src/lib/util/path.h @@ -54,7 +54,7 @@ inline std::string &path_append(std::string &path, T &&next, U &&... more) if (!path.empty() && !is_directory_separator(path.back())) path.append(PATH_SEPARATOR); path.append(std::forward<T>(next)); - if constexpr (sizeof...(U)) + if constexpr (sizeof...(U) > 0U) return path_append(path, std::forward<U>(more)...); else return path; @@ -72,7 +72,7 @@ template <typename T, typename... U> inline std::string path_concat(T &&first, U &&... more) { std::string result(std::forward<T>(first)); - if constexpr (sizeof...(U)) + if constexpr (sizeof...(U) > 0U) path_append(result, std::forward<U>(more)...); return result; } |