]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Delete, rather than just mark as unnecessary, some constructors.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 12 Jul 2017 16:27:34 +0000 (10:27 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 12 Jul 2017 17:08:28 +0000 (11:08 -0600)
include/deal.II/base/table.h

index f8fef1f735c23216574dfb9cc82b8a54cc229922..95b26b20d962cb1cba57a922796be202dc62ef9c 100644 (file)
@@ -166,9 +166,9 @@ namespace internal
                 const iterator    data);
 
       /**
-       * Default constructor. Not needed, and invisible, so private.
+       * Default constructor. Not needed, and invisible, so deleted.
        */
-      Accessor ();
+      Accessor () = delete;
 
     public:
 
@@ -269,9 +269,9 @@ namespace internal
                 const iterator    data);
 
       /**
-       * Default constructor. Not needed, so private.
+       * Default constructor. Not needed, so deleted.
        */
-      Accessor ();
+      Accessor () = delete;
 
     public:
       /**
@@ -1704,21 +1704,6 @@ namespace internal
 
 
 
-    template <int N, typename T, bool C, unsigned int P>
-    inline
-    Accessor<N,T,C,P>::Accessor ()
-      :
-      table (*static_cast<const TableType *>(0)),
-      data (0)
-    {
-      // accessor objects are only
-      // temporary objects, so should
-      // not need to be copied around
-      Assert (false, ExcInternalError());
-    }
-
-
-
     template <int N, typename T, bool C, unsigned int P>
     inline
     Accessor<N,T,C,P-1>
@@ -1758,21 +1743,6 @@ namespace internal
 
 
 
-    template <int N, typename T, bool C>
-    inline
-    Accessor<N,T,C,1>::Accessor ()
-      :
-      table (*static_cast<const TableType *>(0)),
-      data (0)
-    {
-      // accessor objects are only
-      // temporary objects, so should
-      // not need to be copied around
-      Assert (false, ExcInternalError());
-    }
-
-
-
     template <int N, typename T, bool C>
     inline
     Accessor<N,T,C,1>::Accessor (const Accessor &a)

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.