[ox/std] Make toCString(std::string) constexpr

(synced from 15947d2fa9)
This commit is contained in:
2021-11-08 02:24:36 -06:00
parent 6f236d3e55
commit 0d62e02ae8
+1 -2
View File
@@ -42,8 +42,7 @@ constexpr const char *toCString(const BasicString<size> &s) noexcept {
}
#if __has_include(<string>)
inline
const char *toCString(const std::string &s) noexcept {
constexpr const char *toCString(const std::string &s) noexcept {
return s.c_str();
}
#endif