[ox/std] Make fmt stringify(std::string) require C++20 and remove QString variant
This commit is contained in:
parent
3ead29a8bb
commit
5e78289cbc
8
deps/ox/src/ox/std/fmt.hpp
vendored
8
deps/ox/src/ox/std/fmt.hpp
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user