Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 5, 2022
1 parent 54a17bc commit a208726
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions taichi/util/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ inline void create_directories(const std::string &dir) {
#endif
}

template<typename First, typename ...Path>
template <typename First, typename... Path>
inline std::string join_path(First &&path, Path &&...others) {
if constexpr (sizeof...(others) == 0) {
return std::string(path);
} else {
return std::string(path) + "/" + taichi::join_path(std::forward<Path>(others)...);
return std::string(path) + "/" +
taichi::join_path(std::forward<Path>(others)...);
}
return "";
}
Expand Down

0 comments on commit a208726

Please sign in to comment.