From d4ae8e6d3057f16dc2267c45931fe2a1583207a4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 19 Jun 2017 20:27:49 -0600 Subject: [PATCH] Guard static_asserts against MS VC. --- include/deal.II/distributed/solution_transfer.h | 2 ++ include/deal.II/numerics/solution_transfer.h | 2 ++ 2 files changed, 4 insertions(+) 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: /** -- 2.39.5