aboutsummaryrefslogtreecommitdiff
path: root/external/easylogging++
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-25 20:16:44 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-04-10 21:05:35 +0100
commit2c8b23e3316c2644aad0502dff40515d308bd2da (patch)
tree6ee6214565bce934bd365afb4fd110d9473fdd60 /external/easylogging++
parenteasylogging++: allow clipping a common filename prefix (diff)
downloadmonero-2c8b23e3316c2644aad0502dff40515d308bd2da.tar.xz
easylogging++: fix logging with static const header only data members
Diffstat (limited to 'external/easylogging++')
-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 c1daf7a68..a2e750674 100644
--- a/external/easylogging++/easylogging++.h
+++ b/external/easylogging++/easylogging++.h
@@ -3256,7 +3256,19 @@ class Writer : base::NoCopy {
}
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;