Enable C++11 following ns3 example
authorMatthieu Coudron <mattator@gmail.com>
Thu, 18 Aug 2016 16:54:12 +0200
changeset 764 2ecd3e385bf7
parent 763 67ea43a2769e
child 765 55d65891b13b
Enable C++11 following ns3 example ...enabled in ns3 with commit d5650a8d
RELEASE_NOTES
wscript
--- a/RELEASE_NOTES	Tue Nov 08 00:00:45 2016 +0100
+++ b/RELEASE_NOTES	Thu Aug 18 16:54:12 2016 +0200
@@ -29,6 +29,10 @@
 New user-visible features
 -------------------------
 - update docker base image from ubuntu12.04 to ubuntu14.04
+- enabled c++11 following ns3 move to c++11 in commit d5650a8D.  This implies new minimal
+requirements for your compiler:
+- g++-4.8 or later
+- clang-3.3 or later
 
 Bugs fixed
 ----------
--- a/wscript	Tue Nov 08 00:00:45 2016 +0100
+++ b/wscript	Thu Aug 18 16:54:12 2016 +0200
@@ -119,6 +119,10 @@
     if vg_h and vg_memcheck_h:
         conf.env.append_value('CXXDEFINES', 'HAVE_VALGRIND_H')
 
+
+    # Enable C++-11 support
+    conf.env.append_value('CXXFLAGS', '-std=c++11')
+
     if Options.options.kernel_stack:
         if not os.path.isdir(Options.options.kernel_stack):
             Logs.error( "\"%s\" is not a directory: please fix your --enable-kernel-stack parameter." % (Options.options.kernel_stack))