Problem Description
Several people on the ISO C++ Committee noted that annotations might offer better compilation times and a better user experience than the current template-based design.
Proposed Solution
Try annotations, assess compile-time performance, and evaluate user-friendliness.
🚀 Compiler Explorer Example (Optional)
No response
Alternatives Considered
No response
Feature Category
API Enhancement
Example Usage
Some rough ideas:
struct [[=unit::symbol("m"), =unit::kind(kind_of<isq::length>)]] metre;
struct [[=unit::symbol("Hz"), =unit::recipe(one / second), =unit::kind(kind_of<isq::frequency>)]] hertz;
or
struct [[=mp_units::unit("m", kind_of<isq::length>)]] metre;
struct [[=mp_units::unit("Hz", one / second, kind_of<isq::frequency>)]] hertz;
Priority
Nice to have
Implementation Ideas
No response
Additional Context
No response
Checklist
Problem Description
Several people on the ISO C++ Committee noted that annotations might offer better compilation times and a better user experience than the current template-based design.
Proposed Solution
Try annotations, assess compile-time performance, and evaluate user-friendliness.
🚀 Compiler Explorer Example (Optional)
No response
Alternatives Considered
No response
Feature Category
API Enhancement
Example Usage
Some rough ideas:
or
Priority
Nice to have
Implementation Ideas
No response
Additional Context
No response
Checklist