From 8dc98c1f751bb415094034a4a1dd35158faf4067 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 9 Apr 2024 23:47:18 -0500 Subject: [PATCH] [ox/std] Fix sfmt constexpr problems (synced from 0c09c5306ed968220db4002605fbc8f07f2021f1) --- src/ox/std/fmt.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/std/fmt.hpp b/src/ox/std/fmt.hpp index a37170451..f1621bd1e 100644 --- a/src/ox/std/fmt.hpp +++ b/src/ox/std/fmt.hpp @@ -77,7 +77,7 @@ class FmtArg { char dataStr[10] = {}; template - static StringView sv(const T &v, char *dataStr) noexcept { + constexpr StringView sv(const T &v, char *dataStr) noexcept { if constexpr(is_bool_v) { return v ? "true" : "false"; } else if constexpr(is_integer_v) {