diff --git a/src/corelib/io/qfloat16format.h b/src/corelib/io/qfloat16format.h index 2d507800b62..96b3fdab767 100644 --- a/src/corelib/io/qfloat16format.h +++ b/src/corelib/io/qfloat16format.h @@ -45,8 +45,9 @@ using QFloat16FormatterBaseType = QT_END_NAMESPACE +namespace std { template -struct std::formatter +struct formatter : std::formatter), CharT> { template @@ -56,6 +57,7 @@ struct std::formatter return std::formatter::format(FloatType(val), ctx); } }; +} // namespace std #endif // QT_SUPPORTS_STD_FORMAT