From b693d0cd915c5961f050408ca2687b8e5e5abd89 Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 29 Aug 2019 00:28:00 +0300 Subject: [PATCH] Fix #1195 --- include/spdlog/fmt/bin_to_hex.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/spdlog/fmt/bin_to_hex.h b/include/spdlog/fmt/bin_to_hex.h index 4a091dde..c6c9bda8 100644 --- a/include/spdlog/fmt/bin_to_hex.h +++ b/include/spdlog/fmt/bin_to_hex.h @@ -116,7 +116,12 @@ struct formatter> std::size_t pos = 0; std::size_t column = line_size; +#if FMT_VERSION < 60000 auto inserter = ctx.begin(); +#else + auto inserter = ctx.out(); +#endif + for (auto &item : the_range) {