Details
-
User Story
-
Resolution: Out of scope
-
P2: Important
-
None
-
None
-
None
-
c86cf385d (dev), 2d4db1bff (6.5), 3a9bbf235 (6.6)
Description
... but it isn't:
contexpr qfloat16 f16 = 42.f; // ERROR: not a constant expression
I realize that the conversion depends on some tables, but if consteval or std::is_constant_evaluated() may allow to have an alternative implementation that is constexpr. Maybe an algorithmic one that would be too slow for runtime?
Attachments
Issue Links
- relates to
-
QTBUG-108341 Add support for std::numbers::e_v<qfloat16> etc
- Open
For Gerrit Dashboard: QTBUG-116079 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
496753,3 | tst_QHashFunctions: extend the consistency() test with int/FP types | dev | qt/qtbase | Status: MERGED | +2 | 0 |
497081,2 | tst_QHashFunctions: extend the consistency() test with int/FP types | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
497082,2 | tst_QHashFunctions: extend the consistency() test with int/FP types | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
498447,2 | tst_QHashFunctions: fix warning of conversion of FP to higher rank | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |