Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1501)

Unified Diff: src/core/model/log.cc

Issue 336970043: Eliminate Visual Studio compiler warnings (Closed)
Patch Set: Review and update of patch set to make sure all comments are addressed Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/core/model/log.cc
===================================================================
--- a/src/core/model/log.cc
+++ b/src/core/model/log.cc
@@ -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;
+}
+
Peter Barnes 2018/05/11 21:58:12 This is already in upstream, and unrelated to this
ammo6818-vandals.uidaho.edu 2018/05/16 15:06:28 One of the previous review comments was support fo
} // namespace ns3

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b