Skip to content

Commit 74f2c03

Browse files
committed
Patched the json library for modularization.
Replaced `join_with(...) -> {begin(), end()}` with `join_with(...) | std::ranges::to<...>()`
1 parent e9a3045 commit 74f2c03

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cli/option.ixx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,11 @@ export namespace essence::cli {
288288

289289
void validate_range(const element_type& value, bool& success) const {
290290
if (success = valid_values_.empty() ? true : valid_values_.contains(value); !success) {
291-
auto joint = join_with(valid_value_strs_, delimiter);
291+
const auto values = join_with(valid_value_strs_, delimiter) | std::ranges::to<abi::string>();
292292

293293
raise_error(U8("The value was out of range."));
294294
raise_error(U8("One of the following values is allowed:"));
295-
raise_error(abi::string{joint.begin(), joint.end()});
295+
raise_error(values);
296296
}
297297
}
298298

0 commit comments

Comments
 (0)