From 5e9a9fef6edb636b7e6babb743541a18f25bd67f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 16 Apr 2023 12:24:19 +0200 Subject: use Corrade::Utility::move --- compat/exception.hpp | 2 +- compat/format.hpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'compat') diff --git a/compat/exception.hpp b/compat/exception.hpp index c1315a3c..dd07e483 100644 --- a/compat/exception.hpp +++ b/compat/exception.hpp @@ -22,7 +22,7 @@ private: template exception::exception(const Fmt& fmt, Ts&&... args) noexcept { - fmt::format_to(std::back_inserter(buf), fmt, std::forward(args)...); + fmt::format_to(std::back_inserter(buf), fmt, Utility::forward(args)...); buf.push_back('\0'); } 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 #include #include +#include namespace fmt { @@ -50,7 +51,7 @@ template 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), std::forward(args)...); + auto result = fmt::format_to_n(buf, n, Utility::forward(fmt), std::forward(args)...); const auto len = std::min(n, result.size); if constexpr(N > 0) buf[len] = '\0'; -- cgit v1.2.3