Does _error_collector need a constexpr constructor and destructor?

This commit is contained in:
David Given
2025-08-17 01:01:32 +02:00
parent 5d5399a267
commit cf05a25445
2 changed files with 5 additions and 2 deletions

View File

@@ -100,6 +100,9 @@ struct _error_collector
return_type _results;
constexpr _sink() {}
constexpr ~_sink() {}
template <typename Input, typename Reader, typename Tag>
void operator()(const lexy::error_context<Input>& context,
const lexy::error<Reader, Tag>& error)
@@ -143,7 +146,7 @@ std::vector<CylinderHead> parseCylinderHeadsString(const std::string& s)
error(fmt::format("track descriptor parse error: {}",
fmt::join(result.errors(), "; ")));
}
std::vector<CylinderHead> results = result.value();
std::sort(results.begin(), results.end());
return results;