Skip to content

Commit 84cc911

Browse files
committed
Fix Mac compilation by removing std::views::join_with
1 parent f7c2d67 commit 84cc911

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/pstack/gui/save.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,10 @@ std::expected<in_save_state, std::string> save_state_from_json(std::string_view
282282
};
283283
schema.validate(j, schema_reporter);
284284
if (not errors.empty()) {
285-
errors.insert(errors.begin(), "File does not conform to schema:");
286-
auto view = errors | std::views::join_with(std::string_view("\n "));
287-
std::string full_error{view.begin(), view.end()};
285+
std::string full_error = "File does not conform to schema:";
286+
for (std::string& error : errors) {
287+
full_error += "\n " + std::move(error);
288+
}
288289
return std::unexpected(std::move(full_error));
289290
}
290291

0 commit comments

Comments
 (0)