From 77c7a3ab2293108ecfa49a3054b07725cd1e24ca Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 30 May 2021 15:54:49 -0500 Subject: [PATCH] [ox/std] Change fmt toCString to take BasicString instead of String --- deps/ox/src/ox/std/fmt.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/ox/src/ox/std/fmt.hpp b/deps/ox/src/ox/std/fmt.hpp index 544c1f47..f5e626b8 100644 --- a/deps/ox/src/ox/std/fmt.hpp +++ b/deps/ox/src/ox/std/fmt.hpp @@ -35,8 +35,9 @@ constexpr const char *toCString(const BString &s) noexcept { return s.c_str(); } -constexpr const char *toCString(const String &s) noexcept { - return s.c_str(); +template +constexpr const char *toCString(const BasicString &s) noexcept { + return s.c_str(); } #if __has_include()