]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move preprocessor check and add comments 6769/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 16 Jun 2018 21:02:29 +0000 (23:02 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 16 Jun 2018 21:02:29 +0000 (23:02 +0200)
include/deal.II/fe/fe_system.h

index 68e37c75147bf1fdab32b7560d01424a0cfffe7b..854f0c4c37df74ad5ea33d2704e541dcf2f06240 100644 (file)
@@ -439,6 +439,7 @@ public:
   FESystem(const std::vector<const FiniteElement<dim, spacedim> *> &fes,
            const std::vector<unsigned int> &multiplicities);
 
+#  if !defined(__INTEL_COMPILER) || __INTEL_COMPILER >= 1900
   /**
    * Constructor taking an arbitrary number of parameters of type
    * <code>std::pair<std::unique_ptr<FiniteElement<dim, spacedim>>, unsigned
@@ -477,9 +478,10 @@ public:
    * would have expected).
    *
    * @warning This feature is not available for Intel compilers
-   * prior to version 19.0
+   * prior to version 19.0. Defining this
+   * constructor leads to internal compiler errors for Intel compilers prior
+   * to 18.0.
    */
-#  if !defined(__INTEL_COMPILER) || __INTEL_COMPILER >= 1900
   template <
     class... FEPairs,
     typename = typename enable_if_all<
@@ -499,7 +501,8 @@ public:
    * @endcode
    *
    * @warning This feature is not available for Intel compilers
-   * prior to version 19.0
+   * prior to version 19.0. The constructor is just not selected for overload
+   * resolution.
    */
   FESystem(
     const std::initializer_list<

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.