[ox/std] Fix ox::join to work with list types that done have a front function
This commit is contained in:
parent
777a6d54f0
commit
b6ed919b01
2
deps/ox/src/ox/std/fmt.hpp
vendored
2
deps/ox/src/ox/std/fmt.hpp
vendored
@ -207,7 +207,7 @@ constexpr Result<T> join(auto d, const auto &list) {
|
||||
return T("");
|
||||
}
|
||||
T out;
|
||||
out += list.front().value;
|
||||
out += list[0];
|
||||
for (auto i = 1ul; i < list.size(); ++i) {
|
||||
out += d;
|
||||
out += list[i];
|
||||
|
Loading…
Reference in New Issue
Block a user