Bugzilla – Bug 1792
parameter logger constructor
Last modified: 2014-02-17 00:51:48 UTC
Reported by John Abraham Current ns-3.18.1 release candidate crashes on at least one Mac due to something related to this issue: http://lists.cs.uiuc.edu/pipermail/llvmbugs/2013-February/027328.html Suggested fix is: - ParameterLogger::ParameterLogger (std::ostream &os) - : m_itemNumber (0), m_os (os) - { - } + ParameterLogger::ParameterLogger (std::ostream &os) + : std::basic_ostream<char> (os.rdbuf ()),m_itemNumber (0), + m_os (os) +{ +} John noted that this was required for the windows port as well
I haven't had problems here (but I don't use LLVM). The suggested patch compiles for me. I'd suggest a line break, and a pointer to this bug report: diff -r e09c25931173 src/core/model/log.cc --- a/src/core/model/log.cc Thu Oct 24 09:04:46 2013 -0700 +++ b/src/core/model/log.cc Thu Nov 07 15:13:06 2013 -0800 @@ -580,7 +580,8 @@ ParameterLogger::ParameterLogger (std::ostream &os) - : m_itemNumber (0), + : std::basic_ostream<char> (os.rdbuf ()), //!< \bugid{1792} + m_itemNumber (0), m_os (os) { }
pushed in changeset 10399:d70bd78aae8d
*** Bug 1853 has been marked as a duplicate of this bug. ***