From bd0b8e4ee98b75db142a89cadda8310eda8595b2 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 24 Jul 2021 20:35:00 -0500 Subject: [PATCH] [ox/std] Fix copy/move elision in sfmt --- deps/ox/src/ox/std/fmt.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/fmt.hpp b/deps/ox/src/ox/std/fmt.hpp index 754e35d3..d2ac76ee 100644 --- a/deps/ox/src/ox/std/fmt.hpp +++ b/deps/ox/src/ox/std/fmt.hpp @@ -17,6 +17,7 @@ #endif #include "assert.hpp" +#include "error.hpp" #include "bstring.hpp" #include "string.hpp" #include "strops.hpp" @@ -180,7 +181,7 @@ StringType sfmt(const char *fmt, Args... args) noexcept { const auto &s = fmtSegments.segments[i + 1]; oxIgnoreError(out.append(s.str, s.length)); } - return move(out); + return out; } }