From 1fc071527a68d2e7311d67fdb5d59c39d6a87380 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 12 Jul 2015 17:40:00 -0400 Subject: [PATCH] BOOST no cxx11 warnings 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index 1100215fad..08e7a3f3de 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -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: */ -- 2.39.5