diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-02-09 10:45:48 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-03-14 15:55:12 +0100 |
commit | 67385c04ce272cf553bc2e8aa8e923cd7851fc66 (patch) | |
tree | 6fbe4250ed28787282cb1c9a1cc04e555fcd084b /src/corelib/serialization/qdatastream.cpp | |
parent | 06c2ffdae7aecc912b4541a4049ab6aab49cab65 (diff) |
QDataStream: make qfloat16 streaming a non-member
Remove the member function from the API and re-add it as a hidden
friend on qfloat16, where it will be a complete type.
[ChangeLog][QtCore][Potentially Souce-Incompatible Changes] The
qfloat16 QDataStream operators are now hidden friends and only found
by argument-dependent lookup. Previously, these were member functions
on QDataStream.
Fixes: QTBUG-93499
Pick-to: 6.3
Change-Id: Ib3d4df7a3fe3a9d0938f3be8b70b50fef0416262
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/serialization/qdatastream.cpp')
-rw-r--r-- | src/corelib/serialization/qdatastream.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/corelib/serialization/qdatastream.cpp b/src/corelib/serialization/qdatastream.cpp index 67423ee62c..69b497d0e5 100644 --- a/src/corelib/serialization/qdatastream.cpp +++ b/src/corelib/serialization/qdatastream.cpp @@ -993,20 +993,6 @@ QDataStream &QDataStream::operator>>(double &f) /*! \overload - \since 5.9 - - Reads a floating point number from the stream into \a f, - using the standard IEEE 754 format. Returns a reference to the - stream. -*/ -QDataStream &QDataStream::operator>>(qfloat16 &f) -{ - return *this >> reinterpret_cast<qint16&>(f); -} - - -/*! - \overload Reads the '\\0'-terminated string \a s from the stream and returns a reference to the stream. @@ -1341,19 +1327,6 @@ QDataStream &QDataStream::operator<<(double f) /*! - \fn QDataStream &QDataStream::operator<<(qfloat16 f) - \overload - \since 5.9 - - Writes a floating point number, \a f, to the stream using - the standard IEEE 754 format. Returns a reference to the stream. -*/ -QDataStream &QDataStream::operator<<(qfloat16 f) -{ - return *this << reinterpret_cast<qint16&>(f); -} - -/*! \overload Writes the '\\0'-terminated string \a s to the stream and returns a |