From 5e78289cbcc888aff729da987ee5d0c20e98c728 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 --- deps/ox/src/ox/std/fmt.hpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/deps/ox/src/ox/std/fmt.hpp b/deps/ox/src/ox/std/fmt.hpp index db91dcfa..f270642e 100644 --- a/deps/ox/src/ox/std/fmt.hpp +++ b/deps/ox/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: