Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104654

As a user of Qt, I'd like to be able to std::format Qt's qfloat16

    XMLWordPrintable

Details

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cnn Qt Core & Network
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes