src/core/model/log.cc
changeset 13423 b34ee29ed6ab
parent 13095 c2c0ffcbc2ef
child 13665 b2861f3dc03d
--- a/src/core/model/log.cc	Thu Mar 22 19:31:09 2018 -0700
+++ b/src/core/model/log.cc	Tue Mar 27 19:19:12 2018 -0700
@@ -680,4 +680,36 @@
   return *this;
 }
 
+template<>
+ParameterLogger&
+ParameterLogger::operator<< <int8_t>(const int8_t param)
+{
+  if (m_first)
+  {
+    m_os << static_cast<int16_t> (param);
+    m_first = false;
+  }
+  else
+  {
+    m_os << ", " << static_cast<int16_t> (param);
+  }
+  return *this;
+}
+
+template<>
+ParameterLogger&
+ParameterLogger::operator<< <uint8_t>(const uint8_t param)
+{
+  if (m_first)
+  {
+    m_os << static_cast<uint16_t> (param);
+    m_first = false;
+  }
+  else
+  {
+    m_os << ", " << static_cast<uint16_t> (param);
+  }
+  return *this;
+}
+
 } // namespace ns3