[ox/std] Make toCString(std::string) constexpr
This commit is contained in:
parent
84da41ffc9
commit
15947d2fa9
3
deps/ox/src/ox/std/fmt.hpp
vendored
3
deps/ox/src/ox/std/fmt.hpp
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user