From: Matthias Maier Date: Mon, 13 Apr 2015 17:08:09 +0000 (+0200) Subject: Explicitly add default construtor variants X-Git-Tag: v8.3.0-rc1~242^2~8 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b4484da805b0c9a0d00fe87a385d5036ba87a22;p=dealii.git Explicitly add default construtor variants --- diff --git a/include/deal.II/lac/linear_operator.h b/include/deal.II/lac/linear_operator.h index a9301ef35d..0a03b9e091 100644 --- a/include/deal.II/lac/linear_operator.h +++ b/include/deal.II/lac/linear_operator.h @@ -146,8 +146,14 @@ public: } /** - * Create a LinearOperator object from an object @p op for which the - * conversion function linop is defined. + * Default copy constructor. + */ + LinearOperator (const LinearOperator &) = default; + + /** + * Templated copy constructor that creates a LinearOperator object from + * an object @p op for which the conversion function linop + * is defined. */ template LinearOperator (const Op &op) @@ -156,8 +162,13 @@ public: } /** - * Copy assignment operator for an object @p op for which the conversion - * function linop is defined. + * Default copy assignment operator. + */ + LinearOperator &operator=(const LinearOperator &) = default; + + /** + * Templated copy assignment operator for an object @p op for which the + * conversion function linop is defined. */ template LinearOperator &operator=(const Op &op) diff --git a/tests/lac/linear_operator_01.cc b/tests/lac/linear_operator_01.cc index 4d601e31c3..1d486c4fdf 100644 --- a/tests/lac/linear_operator_01.cc +++ b/tests/lac/linear_operator_01.cc @@ -21,6 +21,7 @@ #include #include + using namespace dealii; // Dummy vectors with different, non convertible types: