]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove (empty) default constructor for ArrayView 5478/head
authorDaniel Arndt <d.arndt@math.uni-goettingen.de>
Thu, 16 Nov 2017 23:08:53 +0000 (00:08 +0100)
committerDaniel Arndt <d.arndt@math.uni-goettingen.de>
Thu, 16 Nov 2017 23:19:48 +0000 (00:19 +0100)
doc/news/changes/incompatibilities/20171117DanielArndt [new file with mode: 0644]
include/deal.II/base/array_view.h
tests/base/array_view_07.cc [deleted file]
tests/base/array_view_07.output [deleted file]

diff --git a/doc/news/changes/incompatibilities/20171117DanielArndt b/doc/news/changes/incompatibilities/20171117DanielArndt
new file mode 100644 (file)
index 0000000..f913873
--- /dev/null
@@ -0,0 +1,4 @@
+Removed: The default constructor for ArrayView was removed since
+an object constructed in this way can't be used in any sensible way.
+<br>
+(Daniel Arndt, 2017/11/17)
index dbeb9569b659485476afd3e0dd5d965c8d3375d5..56a6b483a7e1ffd6b3bbb63bcf44cfa69d4cc0d7 100644 (file)
@@ -86,12 +86,6 @@ public:
    */
   typedef const ElementType *const_iterator;
 
-  /**
-   * Default constructor. Creates an invalid view that does not point to
-   * anything at all.
-   */
-  ArrayView ();
-
   /**
    * Constructor.
    *
@@ -244,15 +238,6 @@ private:
 //---------------------------------------------------------------------------
 
 
-template <typename ElementType>
-inline
-ArrayView<ElementType>::ArrayView()
-  :
-  starting_element (nullptr),
-  n_elements(0)
-{}
-
-
 
 template <typename ElementType>
 inline
diff --git a/tests/base/array_view_07.cc b/tests/base/array_view_07.cc
deleted file mode 100644 (file)
index e32d512..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-// ---------------------------------------------------------------------
-//
-// Copyright (C) 2015 - 2016 by the deal.II authors
-//
-// This file is part of the deal.II library.
-//
-// The deal.II library is free software; you can use it, redistribute
-// it, and/or modify it under the terms of the GNU Lesser General
-// Public License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-// The full text of the license can be found in the file LICENSE at
-// the top level of the deal.II distribution.
-//
-// ---------------------------------------------------------------------
-
-
-// test that a default-constructed ArrayView can actually be copied
-
-#include "../tests.h"
-
-#include <deal.II/base/array_view.h>
-
-
-void test ()
-{
-  ArrayView<int> a;
-  ArrayView<int> b = a;
-
-  deallog << "OK" << std::endl;
-}
-
-
-
-
-int main()
-{
-  initlog();
-
-  test ();
-}
diff --git a/tests/base/array_view_07.output b/tests/base/array_view_07.output
deleted file mode 100644 (file)
index 0fd8fc1..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-
-DEAL::OK

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.