From 25d31dd853f450a9191132dbb775ed8a7a8a456e Mon Sep 17 00:00:00 2001 From: Epixu Date: Tue, 3 Dec 2024 13:11:13 +0200 Subject: [PATCH] Logger::Append has the ability to return a scoped tab --- source/Logger.inl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/Logger.inl b/source/Logger.inl index a9fe4c2..4160504 100644 --- a/source/Logger.inl +++ b/source/Logger.inl @@ -130,8 +130,9 @@ namespace Langulus::Logger template LANGULUS(INLINED) decltype(auto) Append(T&&...arguments) noexcept { if constexpr (sizeof...(arguments) > 0) - (Instance << ... << ::std::forward(arguments)); - return (Instance); + return (Instance << ... << ::std::forward(arguments)); + else + return (Instance); } /// Write a section on a new line, tab all consecutive lines, bold it,