diff options
Diffstat (limited to 'compat/format.hpp')
-rw-r--r-- | compat/format.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/format.hpp b/compat/format.hpp index 6eaf10d8..45f8a9cb 100644 --- a/compat/format.hpp +++ b/compat/format.hpp @@ -3,6 +3,7 @@ #include <fmt/compile.h> #include <Corrade/Containers/StringView.h> #include <Corrade/Containers/String.h> +#include <Corrade/Utility/Move.h> namespace fmt { @@ -50,7 +51,7 @@ template<size_t N, typename Fmt, typename... Xs> size_t snformat(char(&buf)[N], Fmt&& fmt, Xs&&... args) { constexpr size_t n = N > 0 ? N - 1 : 0; - auto result = fmt::format_to_n(buf, n, std::forward<Fmt>(fmt), std::forward<Xs>(args)...); + auto result = fmt::format_to_n(buf, n, Utility::forward<Fmt>(fmt), std::forward<Xs>(args)...); const auto len = std::min(n, result.size); if constexpr(N > 0) buf[len] = '\0'; |