From: Timo Heister Date: Sun, 12 Jul 2015 21:40:00 +0000 (-0400) Subject: BOOST no cxx11 warnings X-Git-Tag: v8.3.0-rc1~17^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fc071527a68d2e7311d67fdb5d59c39d6a87380;p=dealii.git 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). --- 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: */