diff --git a/gucc/include/gucc/string_utils.hpp b/gucc/include/gucc/string_utils.hpp index 7a68166..d063f66 100644 --- a/gucc/include/gucc/string_utils.hpp +++ b/gucc/include/gucc/string_utils.hpp @@ -35,7 +35,7 @@ auto make_multiline(const std::vector& multiline, bool reverse = fa /// @param lines The lines to join. /// @param delim The delimiter to join the lines. /// @return The joined lines as a single string. -auto join(const std::vector& lines, std::string_view delim = "\n") noexcept -> std::string; +auto join(const std::vector& lines, char delim = '\n') noexcept -> std::string; /// @brief Make a split view from a string into multiple lines based on a delimiter. /// @param str The string to split. diff --git a/gucc/src/string_utils.cpp b/gucc/src/string_utils.cpp index d8b71f2..0f7b339 100644 --- a/gucc/src/string_utils.cpp +++ b/gucc/src/string_utils.cpp @@ -35,7 +35,7 @@ auto make_multiline(const std::vector& multiline, bool reverse, std return res; } -auto join(const std::vector& lines, std::string_view delim) noexcept -> std::string { +auto join(const std::vector& lines, char delim) noexcept -> std::string { return lines | std::ranges::views::join_with(delim) | std::ranges::to(); } diff --git a/gucc/src/user.cpp b/gucc/src/user.cpp index 762c4d0..c3a525a 100644 --- a/gucc/src/user.cpp +++ b/gucc/src/user.cpp @@ -85,7 +85,7 @@ auto create_new_user(const user::UserInfo& user_info, const std::vector