From 8b3f0cf15fd5271f754c355213ccc034a7d86b84 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 25 Apr 2021 02:07:08 -0500 Subject: [PATCH] [ox/std] Make fmt stringify(std::string) require C++20 and remove QString variant (synced from 5e78289cbcc888aff729da987ee5d0c20e98c728) --- src/ox/std/fmt.hpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ox/std/fmt.hpp b/src/ox/std/fmt.hpp index db91dcfad..f270642ea 100644 --- a/src/ox/std/fmt.hpp +++ b/src/ox/std/fmt.hpp @@ -37,18 +37,12 @@ constexpr const char *stringify(const ox::String &s) noexcept { return s.c_str(); } -#if __has_include() +#if __has_include() && __cplusplus >= 202002L constexpr const char *stringify(const std::string &s) noexcept { return s.c_str(); } #endif -#if __has_include() -constexpr const char *stringify(const QString &s) noexcept { - return s.c_str(); -} -#endif - class FmtArg { private: