Axel Spoerl (28 July 2025 17:13),
> Has anything changed in the qfloat16 implementation recently?

No.

> .../qtbase/src/corelib/doc/snippets/code/src_corelib_serialization_qcborstream.cpp:164:24:
> error: conversion from ‘float’ to non-scalar type ‘qfloat16’ requested
>  164 |         qfloat16 f16 = f;
>
> This fixes the problem: https://codereview.qt-project.org/c/qt/qtbase/+/664024

That error message sounds like the lack of #include <qfloat16.h> may be
relevant.  There is a non-explicit qfloat16(float) constructor, which I
would expect to make that work, if its declaration were visible.

> But I wonder how this can have merged:
> https://codereview.qt-project.org/c/qt/qtbase/+/663662

The code there is snippets; I wouldn't be at all surprised if what's
changed is that someone has enabled compilation of them as part of
normal builds, since that change integrated.

        Eddy.

Confidential
-- 
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to