From 80b6614b68ef58a28c0beb573aabfca9b94ae5b1 Mon Sep 17 00:00:00 2001 From: Jason Marechal Date: Fri, 17 Nov 2023 11:20:23 +0100 Subject: [PATCH] Fix gcc compilation --- src/ext/yuni/src/yuni/core/logs/handler/file.hxx | 1 + src/ext/yuni/src/yuni/core/logs/handler/stdcout.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ext/yuni/src/yuni/core/logs/handler/file.hxx b/src/ext/yuni/src/yuni/core/logs/handler/file.hxx index 8e8b1857cd..2fdd50032d 100644 --- a/src/ext/yuni/src/yuni/core/logs/handler/file.hxx +++ b/src/ext/yuni/src/yuni/core/logs/handler/file.hxx @@ -61,6 +61,7 @@ void File::internalDecoratorWriteWL(LoggerT& logger, const AnyStrin { if (pFile.opened()) { + using DecoratorsType = typename LoggerT::DecoratorsType; // Append the message to the file logger.DecoratorsType::template internalDecoratorAddPrefix(pFile, s); diff --git a/src/ext/yuni/src/yuni/core/logs/handler/stdcout.h b/src/ext/yuni/src/yuni/core/logs/handler/stdcout.h index 5027f4fe18..1d3151564d 100644 --- a/src/ext/yuni/src/yuni/core/logs/handler/stdcout.h +++ b/src/ext/yuni/src/yuni/core/logs/handler/stdcout.h @@ -34,10 +34,10 @@ class YUNI_DECL StdCout : public NextHandler colorsAllowed = YUNI_LOGS_COLORS_ALLOWED, }; -public: template void internalDecoratorWriteWL(LoggerT& logger, const AnyString& s) const { + using DecoratorsType = typename LoggerT::DecoratorsType; // Write the message to the std::cout/cerr if (VerbosityType::shouldUsesStdCerr) {