Details
-
User Story
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
TL;DR: see epic for up-to-date implementation advice
We come from the near future and are porting our code to the new C++20 std::format library. We also use Qt, and have so far just written the std::formatter's ourselves, but a certain mmutz tells us that we mustn't, because we control neither the Qt types nor the std ones. And just as we were absorbing this advice, all hell broke lose when we added a new 3rd-party library that also added std::formatter<qfloat16, ~~~>
So, we have concluded that it's your job, dear Qt people, to provide these std::formatter specialisations for all the Qt types.
This ticket is for the Qt arithmetic types, of which there's only one, afaict, qfloat16. Will write other tickets for other Qt types.
Acceptance criteria:
- qfloat16 works in std::format the same way as double, float, long double do