]> https://gitweb.dealii.org/ - dealii.git/commitdiff
BOOST no cxx11 warnings
authorTimo Heister <timo.heister@gmail.com>
Sun, 12 Jul 2015 21:40:00 +0000 (17:40 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sun, 12 Jul 2015 21:40:00 +0000 (17:40 -0400)
Stop BOOST from trying to use variadic templates when we compile without cxx11
support. This only happens rarely (at least with mingw gcc 5 on windows).

include/deal.II/base/config.h.in

index 1100215fad1b6d57379d311a45c273fb33285f22..08e7a3f3ded2786196e0551aab8ac3b3e02d2f97 100644 (file)
@@ -314,6 +314,16 @@ _Pragma("GCC diagnostic pop")
 #endif
 
 
+/**
+ * BOOST can falsely detect cxx11 support and will try to use
+ * variadic templates even when we disable cxx11. This would create
+ * a ton of warnings, so we tell boost to not use them in this case.
+ */
+#ifndef DEAL_II_WITH_CXX11
+#define BOOST_NO_CXX11_VARIADIC_TEMPLATES
+#endif
+
+
 /***********************************************************************
  * Final inclusions:
  */

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.