[ox/std] Make fmt stringify(std::string) require C++20 and remove QString variant

This commit is contained in:
Gary Talent 2021-04-25 02:07:08 -05:00
parent 3ead29a8bb
commit 5e78289cbc

View File

@ -37,18 +37,12 @@ constexpr const char *stringify(const ox::String &s) noexcept {
return s.c_str();
}
#if __has_include(<string>)
#if __has_include(<string>) && __cplusplus >= 202002L
constexpr const char *stringify(const std::string &s) noexcept {
return s.c_str();
}
#endif
#if __has_include(<QString>)
constexpr const char *stringify(const QString &s) noexcept {
return s.c_str();
}
#endif
class FmtArg {
private: