Fix ambiguous operator overload << in g++ 7 netanim-3.108
authorJohn Abraham <john.abraham.in@gmail.com>
Wed, 04 Oct 2017 21:13:44 -0700
changeset 303 2ce82d2b8afd
parent 302 cb423600c2f6
child 304 7b4d3db98f92
Fix ambiguous operator overload << in g++ 7
RELEASE_NOTES
log.h
--- a/RELEASE_NOTES	Sat Mar 11 15:36:08 2017 -0800
+++ b/RELEASE_NOTES	Wed Oct 04 21:13:44 2017 -0700
@@ -18,10 +18,21 @@
 ====
 http://www.nsnam.org/wiki/NetAnim
 
+Please use the following to download using mercurial:
+hg clone http://code.nsnam.org/netanim
+
+Release 3.108
+=============
+
+Changelog
+---------
+1. Bug 2370 - Fails to build from source with GCC 6
+2. Initial support for Ipv6
+3. Fixes ambiguous operator << overload on g++ 7
+
+
 Release 3.107
 =============
-Please use the following to download using mercurial:
-hg clone http://code.nsnam.org/netanim
 
 Changelog
 ---------
@@ -33,8 +44,6 @@
 
 Release 3.106
 =============
-Please use the following to download using mercurial:
-hg clone http://code.nsnam.org/netanim
 
 Changelog
 ---------
--- a/log.h	Sat Mar 11 15:36:08 2017 -0800
+++ b/log.h	Wed Oct 04 21:13:44 2017 -0700
@@ -310,20 +310,20 @@
  * NS_LOG_FUNCTION_NOARGS() instead.
  *
  */
-#define NS_LOG_FUNCTION(parameters)                             \
-  do                                                            \
-    {                                                           \
-      if (g_log.IsEnabled (ns3::LOG_FUNCTION))                  \
-        {                                                       \
-          NS_LOG_APPEND_TIME_PREFIX;                            \
-          NS_LOG_APPEND_NODE_PREFIX;                            \
-          NS_LOG_APPEND_CONTEXT;                                \
-          std::clog << g_log.Name () << ":"                     \
-                    << __FUNCTION__ << "(";                     \
-          ns3::ParameterLogger (std::clog) << parameters;      \
-          std::clog << ")" << std::endl;                        \
-        }                                                       \
-    }                                                           \
+#define NS_LOG_FUNCTION(parameters)                               \
+  do                                                              \
+    {                                                             \
+      if (g_log.IsEnabled (ns3::LOG_FUNCTION))                    \
+        {                                                         \
+          NS_LOG_APPEND_TIME_PREFIX;                              \
+          NS_LOG_APPEND_NODE_PREFIX;                              \
+          NS_LOG_APPEND_CONTEXT;                                  \
+          std::clog << g_log.Name () << ":"                       \
+                    << __FUNCTION__ << "(";                       \
+          ns3::ParameterLogger (std::clog).operator<<(parameters);\
+          std::clog << ")" << std::endl;                          \
+        }                                                         \
+    }                                                             \
   while (false)