]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Guard static_asserts against MS VC. 4529/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Jun 2017 02:27:49 +0000 (20:27 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Jun 2017 02:27:49 +0000 (20:27 -0600)
include/deal.II/distributed/solution_transfer.h
include/deal.II/numerics/solution_transfer.h

index 2f14a8b4e07b0d0205fc2e26cf2fe509fc2f85f9..7e6b2be4c487316318f8308fe42966e76721fecb 100644 (file)
@@ -117,10 +117,12 @@ namespace parallel
               typename DoFHandlerType = DoFHandler<dim> >
     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.
index b033ca6203c454c4dc84dfca512eaa0a056a2c00..b0549b9ec17e13f3a5943169dbedc9626d29f943 100644 (file)
@@ -293,10 +293,12 @@ template<int dim,
          typename DoFHandlerType = DoFHandler<dim> >
 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:
 
   /**

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.