mirror of
https://github.com/mpusz/mp-units.git
synced 2026-07-08 01:20:54 +02:00
199cc49a7e
The QUANTITY_SPEC parser only recognized `quantity_character::` as a character override, and the generated metadata-extraction program `switch`ed over the character enum. Both broke once the ISQ definitions moved to the `quantity_tensor_order` / `quantity_field` spelling and `quantity_character` became a struct. - Treat `quantity_tensor_order::` and `quantity_field::` (alongside `quantity_character::`) as character overrides when deciding whether the third macro argument is an equation. - Rewrite `character_to_string` to compare against the two-axis values instead of switching on an enum. The regenerated reference is byte-identical (only the source hash changes). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>