From 15947d2fa9ac4d6dfcfeb4e7fd68e2f789f829f0 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 8 Nov 2021 02:24:36 -0600 Subject: [PATCH] [ox/std] Make toCString(std::string) constexpr --- deps/ox/src/ox/std/fmt.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deps/ox/src/ox/std/fmt.hpp b/deps/ox/src/ox/std/fmt.hpp index 90010f36..2d236964 100644 --- a/deps/ox/src/ox/std/fmt.hpp +++ b/deps/ox/src/ox/std/fmt.hpp @@ -42,8 +42,7 @@ constexpr const char *toCString(const BasicString &s) noexcept { } #if __has_include() -inline -const char *toCString(const std::string &s) noexcept { +constexpr const char *toCString(const std::string &s) noexcept { return s.c_str(); } #endif