mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
easylogging++: fix logging with static const header only data members
This commit is contained in:
parent
3b46617bd9
commit
dc98019b59
1 changed files with 13 additions and 1 deletions
14
external/easylogging++/easylogging++.h
vendored
14
external/easylogging++/easylogging++.h
vendored
|
@ -5092,7 +5092,19 @@ ELPP_LITERAL("(") << elem->first << ELPP_LITERAL(", ") << elem->second << ELPP_L
|
|||
}
|
||||
|
||||
template <typename T>
|
||||
inline Writer& operator<<(const T& log) {
|
||||
inline typename std::enable_if<std::is_integral<T>::value, Writer&>::type
|
||||
operator<<(T log) {
|
||||
#if ELPP_LOGGING_ENABLED
|
||||
if (m_proceed) {
|
||||
m_messageBuilder << log;
|
||||
}
|
||||
#endif // ELPP_LOGGING_ENABLED
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
inline typename std::enable_if<!std::is_integral<T>::value, Writer&>::type
|
||||
operator<<(const T& log) {
|
||||
#if ELPP_LOGGING_ENABLED
|
||||
if (m_proceed) {
|
||||
m_messageBuilder << log;
|
||||
|
|
Loading…
Reference in a new issue