From: Wolfgang Bangerth Date: Tue, 20 Jun 2017 02:27:49 +0000 (-0600) Subject: Guard static_asserts against MS VC. X-Git-Tag: v9.0.0-rc1~1489^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4529%2Fhead;p=dealii.git Guard static_asserts against MS VC. --- diff --git a/include/deal.II/distributed/solution_transfer.h b/include/deal.II/distributed/solution_transfer.h index 2f14a8b4e0..7e6b2be4c4 100644 --- a/include/deal.II/distributed/solution_transfer.h +++ b/include/deal.II/distributed/solution_transfer.h @@ -117,10 +117,12 @@ namespace parallel typename DoFHandlerType = DoFHandler > class SolutionTransfer { +#ifndef DEAL_II_MSVC static_assert (dim == DoFHandlerType::dimension, "The dimension explicitly provided as a template " "argument, and the dimension of the DoFHandlerType " "template argument must match."); +#endif public: /** * Constructor, takes the current DoFHandler as argument. diff --git a/include/deal.II/numerics/solution_transfer.h b/include/deal.II/numerics/solution_transfer.h index b033ca6203..b0549b9ec1 100644 --- a/include/deal.II/numerics/solution_transfer.h +++ b/include/deal.II/numerics/solution_transfer.h @@ -293,10 +293,12 @@ template > class SolutionTransfer { +#ifndef DEAL_II_MSVC static_assert (dim == DoFHandlerType::dimension, "The dimension explicitly provided as a template " "argument, and the dimension of the DoFHandlerType " "template argument must match."); +#endif public: /**