From 87e013534c347073a551d4288f20a9987c6f90f4 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 25 Jun 2018 16:32:22 +0300 Subject: [PATCH] wincolor sink fix --- include/spdlog/sinks/wincolor_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/wincolor_sink.h b/include/spdlog/sinks/wincolor_sink.h index 1eb76fea..9b93dc13 100644 --- a/include/spdlog/sinks/wincolor_sink.h +++ b/include/spdlog/sinks/wincolor_sink.h @@ -105,7 +105,7 @@ private: } // print a range of formatted message to console - void print_range_(const fmt::memory_buffer formatted, size_t start, size_t end) + void print_range_(const fmt::memory_buffer &formatted, size_t start, size_t end) { auto size = static_cast(end - start); ::WriteConsoleA(out_handle_, formatted.data() + start, size, nullptr, nullptr);