From 4b4484da805b0c9a0d00fe87a385d5036ba87a22 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 13 Apr 2015 19:08:09 +0200 Subject: [PATCH] Explicitly add default construtor variants --- include/deal.II/lac/linear_operator.h | 19 +++++++++++++++---- tests/lac/linear_operator_01.cc | 1 + 2 files changed, 16 insertions(+), 4 deletions(-) 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: -- 2.39.5