diff --git a/external/easylogging++/easylogging++.h b/external/easylogging++/easylogging++.h index c1daf7a6..a2e75067 100644 --- a/external/easylogging++/easylogging++.h +++ b/external/easylogging++/easylogging++.h @@ -3256,7 +3256,19 @@ class Writer : base::NoCopy { } template - inline Writer& operator<<(const T& log) { + inline typename std::enable_if::value, Writer&>::type + operator<<(T log) { +#if ELPP_LOGGING_ENABLED + if (m_proceed) { + m_messageBuilder << log; + } +#endif // ELPP_LOGGING_ENABLED + return *this; + } + + template + inline typename std::enable_if::value, Writer&>::type + operator<<(const T& log) { #if ELPP_LOGGING_ENABLED if (m_proceed) { m_messageBuilder << log;