From 130ff0c8db07824853fac15e634003da598680f0 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 31 Oct 2022 18:15:43 +0200 Subject: [PATCH] enable the ostream formatting for backward compatibility with fmt 8.x --- include/spdlog/fmt/fmt.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/spdlog/fmt/fmt.h b/include/spdlog/fmt/fmt.h index d57ed002..73137085 100644 --- a/include/spdlog/fmt/fmt.h +++ b/include/spdlog/fmt/fmt.h @@ -22,6 +22,9 @@ // enable the 'n' flag in for backward compatibility with fmt 6.x # define FMT_DEPRECATED_N_SPECIFIER +// enable the ostream formatting for backward compatibility with fmt 8.x +# define FMT_DEPRECATED_OSTREAM + // suppress "integral constant overflow" warning under msvc 2017 (which doesn't appear in other msvc versions) #if defined(_MSC_VER) && ((_MSC_VER >= 1910) && (_MSC_VER <= 1916)) # pragma warning(push)