path.h: Fix path_append and path_concat of >2 arguments

This commit is contained in:
AJR 2022-10-04 18:14:57 -04:00
parent d356ad91d4
commit 786495a6ed

View File

@ -55,7 +55,7 @@ inline std::string &path_append(std::string &path, T &&next, U &&... more)
path.append(PATH_SEPARATOR);
path.append(std::forward<T>(next));
if constexpr (sizeof...(U))
return path_append(std::forward<U>(more)...);
return path_append(path, std::forward<U>(more)...);
else
return path;
}