From 03735e225b9683d3b0981ccd6b32d82e62475667 Mon Sep 17 00:00:00 2001 From: gabi Date: Sat, 3 Jan 2015 11:46:50 +0200 Subject: [PATCH] Fix to support formatting chars { or } when no args passed to log functions --- include/spdlog/details/line_logger.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/spdlog/details/line_logger.h b/include/spdlog/details/line_logger.h index 7160f6da..1dc0b911 100644 --- a/include/spdlog/details/line_logger.h +++ b/include/spdlog/details/line_logger.h @@ -85,6 +85,13 @@ public: } } + + void write(const char* what) + { + if (_enabled) + _log_msg.raw << what; + } + template line_logger& operator<<(const T& what) {