diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2024-03-01 10:17:38 -0800 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2024-03-02 07:29:15 -0800 |
| commit | 48cd6867578ef372bbacb16081414b506cdb5b38 (patch) | |
| tree | 4c95693eaf0a2b26c1779e788036116d71bfc514 /src/opengl/qopenglwindow.cpp | |
| parent | 89fc58127d449cc2995879ff334567141e9c1d58 (diff) | |
qfloat16: make native std::numeric_limits<qfloat16> constexpr
In C++23 with std::float16_t present (QFLOAT16_IS_NATIVE), the
_limit_xxxx() methods in qfloat16 need to set the native type, not rely
on the union trick because that isn't allowed in constexpr mode.
in ‘constexpr’ expansion of ‘operator<=>(Max, std::numeric_limits<double>::max())’
qfloat16.h:209:5: in ‘constexpr’ expansion of ‘compareThreeWay((* & lhs), ((double)rhs))’
qfloat16.h:209:5: in ‘constexpr’ expansion of ‘(& lhs)->qfloat16::operator NativeType()’
error: accessing ‘qfloat16::<unnamed union>::nf’ member instead of initialized ‘qfloat16::<unnamed union>::b16’ member in constant expression
Pick-to: 6.7
Change-Id: I01ec3c774d9943adb903fffd17b8b6ceed6ef9e2
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/opengl/qopenglwindow.cpp')
0 files changed, 0 insertions, 0 deletions
