From 3a0387f7429710a21af7abcc745c71d6932e14be Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 3 Jan 2019 11:59:04 +0100 Subject: [PATCH] Fix logger time_t issues on at least OpenBSD. Use a template to log trivial types. This way the compiler figures out what logger methods oo generate. --- pdns/logger.cc | 58 -------------------------------------------------- pdns/logger.hh | 14 ++++++------ 2 files changed, 8 insertions(+), 64 deletions(-) diff --git a/pdns/logger.cc b/pdns/logger.cc index 1766d35ae..cd56e5d78 100644 --- a/pdns/logger.cc +++ b/pdns/logger.cc @@ -184,64 +184,6 @@ Logger& Logger::operator<<(const char *s) return *this; } -Logger& Logger::operator<<(int i) -{ - ostringstream tmp; - tmp< Logger & operator<<(const T & i) { + ostringstream tmp; + tmp<