summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/global/qfloat16.cpp13
-rw-r--r--src/corelib/global/qfloat16.h7
2 files changed, 2 insertions, 18 deletions
diff --git a/src/corelib/global/qfloat16.cpp b/src/corelib/global/qfloat16.cpp
index 05f03d0370..7dd2f7b331 100644
--- a/src/corelib/global/qfloat16.cpp
+++ b/src/corelib/global/qfloat16.cpp
@@ -73,19 +73,6 @@ QT_BEGIN_NAMESPACE
*/
/*!
- \macro QT_NO_FLOAT16_OPERATORS
- \relates qfloat16
- \since 5.12.4
-
- Defining this macro disables the arithmetic operators for qfloat16.
-
- This is only necessary on Visual Studio 2017 (and earlier) when including
- \c {<QFloat16>} and \c{<bitset>} in the same translation unit, which would
- otherwise cause a compilation error due to a toolchain bug (see
- [QTBUG-72073]).
-*/
-
-/*!
\fn bool qIsInf(qfloat16 f)
\relates qfloat16
\overload qIsInf(float)
diff --git a/src/corelib/global/qfloat16.h b/src/corelib/global/qfloat16.h
index 9c6fb29e42..ed20983ac5 100644
--- a/src/corelib/global/qfloat16.h
+++ b/src/corelib/global/qfloat16.h
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2019 The Qt Company Ltd.
+** Copyright (C) 2020 The Qt Company Ltd.
** Copyright (C) 2016 by Southwest Research Institute (R)
** Contact: http://www.qt-project.org/legal
**
@@ -112,9 +112,8 @@ private:
Q_CORE_EXPORT static const quint32 roundtable[];
friend bool qIsNull(qfloat16 f) noexcept;
-#if !defined(QT_NO_FLOAT16_OPERATORS)
+
friend qfloat16 operator-(qfloat16 a) noexcept;
-#endif
};
Q_DECLARE_TYPEINFO(qfloat16, Q_PRIMITIVE_TYPE);
@@ -215,7 +214,6 @@ inline qfloat16::operator float() const noexcept
}
#endif
-#if !defined(QT_NO_FLOAT16_OPERATORS)
inline qfloat16 operator-(qfloat16 a) noexcept
{
qfloat16 f;
@@ -296,7 +294,6 @@ QF16_MAKE_BOOL_OP_INT(!=)
#undef QF16_MAKE_BOOL_OP_INT
QT_WARNING_POP
-#endif // QT_NO_FLOAT16_OPERATORS
/*!
\internal