]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Delete default constructor FESystem 11992/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 31 Mar 2021 10:52:02 +0000 (12:52 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 31 Mar 2021 10:52:02 +0000 (12:52 +0200)
include/deal.II/fe/fe_system.h

index 082db599654f0400dbdd183c65a3072011bc622b..259098e443df48bed3e478ccc49586fa012fcddd 100644 (file)
@@ -210,12 +210,17 @@ class FE_Enriched;
  *
  * @ingroup febase fe vector_valued
  *
- * Hartmann 2001.
  */
 template <int dim, int spacedim = dim>
 class FESystem : public FiniteElement<dim, spacedim>
 {
 public:
+  /**
+   * Delete default constructor so that `FESystem(FEPairs &&... fe_pairs)` is
+   * not accidentally picked if no FiniteElement is provided.
+   */
+  FESystem() = delete;
+
   /**
    * Constructor. Take a finite element and the number of elements you want to
    * group together using this class.

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.