aboutsummaryrefslogtreecommitdiff
path: root/external/easylogging++/easylogging++.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-01 00:53:46 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-16 00:18:21 +0000
commitdc98019b5907cbae5fcfdb3df09fea17ec37d26a (patch)
tree72576d7138636075ad732713a8474c1dbc6113c2 /external/easylogging++/easylogging++.h
parenteasylogging++: add ELPP_DISABLE_CHECK_MACROS (diff)
downloadmonero-dc98019b5907cbae5fcfdb3df09fea17ec37d26a.tar.xz
easylogging++: fix logging with static const header only data members
Diffstat (limited to 'external/easylogging++/easylogging++.h')
-rw-r--r--external/easylogging++/easylogging++.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/external/easylogging++/easylogging++.h b/external/easylogging++/easylogging++.h
index dcf16a75e..688648452 100644
--- a/external/easylogging++/easylogging++.h
+++ b/external/easylogging++/easylogging++.h
@@ -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;