From 2190e34b7b0a11dd5a513d941527f8bc35cb9c9f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 13 Sep 2023 05:54:26 +0200 Subject: less header pollution --- compat/format.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compat') diff --git a/compat/format.hpp b/compat/format.hpp index 4fa05f26..9a61dd96 100644 --- a/compat/format.hpp +++ b/compat/format.hpp @@ -1,9 +1,10 @@ #pragma once #include #include -#include #include #include +#include +#include namespace fmt { @@ -52,7 +53,7 @@ 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, Corrade::Utility::forward(fmt), Corrade::Utility::forward(args)...); - const auto len = std::min(n, result.size); + const auto len = Utility::min(n, result.size); if constexpr(N > 0) buf[len] = '\0'; return len; -- cgit v1.2.3