]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Explicitly add default construtor variants
authorMatthias Maier <tamiko@43-1.org>
Mon, 13 Apr 2015 17:08:09 +0000 (19:08 +0200)
committerMatthias Maier <tamiko@43-1.org>
Sun, 19 Apr 2015 20:55:06 +0000 (22:55 +0200)
include/deal.II/lac/linear_operator.h
tests/lac/linear_operator_01.cc

index a9301ef35d97f43ae1a743dece19c940bea4640d..0a03b9e0916f2fa2bedf4de8f2bbe58416fd5184 100644 (file)
@@ -146,8 +146,14 @@ public:
   }
 
   /**
-   * Create a LinearOperator object from an object @p op for which the
-   * conversion function <code>linop</code> is defined.
+   * Default copy constructor.
+   */
+  LinearOperator (const LinearOperator<Range, Domain> &) = default;
+
+  /**
+   * Templated copy constructor that creates a LinearOperator object from
+   * an object @p op for which the conversion function <code>linop</code>
+   * is defined.
    */
   template<typename Op>
   LinearOperator (const Op &op)
@@ -156,8 +162,13 @@ public:
   }
 
   /**
-   * Copy assignment operator for an object @p op for which the conversion
-   * function <code>linop</code> is defined.
+   * Default copy assignment operator.
+   */
+  LinearOperator<Range, Domain> &operator=(const LinearOperator<Range, Domain> &) = default;
+
+  /**
+   * Templated copy assignment operator for an object @p op for which the
+   * conversion function <code>linop</code> is defined.
    */
   template <typename Op>
   LinearOperator<Range, Domain> &operator=(const Op &op)
index 4d601e31c3f0c822c312e3039735cf70c969887c..1d486c4fdfbc5e1701dd55c2262649708e6a8f9b 100644 (file)
@@ -21,6 +21,7 @@
 #include <deal.II/lac/linear_operator.h>
 #include <deal.II/lac/vector_memory.templates.h>
 
+
 using namespace dealii;
 
 // Dummy vectors with different, non convertible types:

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.