From b8b31f643be6974a8efe2fa6b063cadcad6ad0df Mon Sep 17 00:00:00 2001
From: Tobias Leibner <tobias.leibner@googlemail.com>
Date: Tue, 8 Oct 2019 13:45:09 +0200
Subject: [PATCH] [la.container] fix warning

---
 dune/xt/common/disable_warnings.hh  | 2 ++
 dune/xt/la/container/eigen/dense.hh | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/dune/xt/common/disable_warnings.hh b/dune/xt/common/disable_warnings.hh
index 19fa9a5fe..1520f1f78 100644
--- a/dune/xt/common/disable_warnings.hh
+++ b/dune/xt/common/disable_warnings.hh
@@ -18,6 +18,7 @@
 #  pragma GCC diagnostic ignored "-Wall"
 #  pragma GCC diagnostic ignored "-Wcovered-switch-default"
 #  pragma clang diagnostic ignored "-Wdelete-non-virtual-dtor"
+#  pragma GCC diagnostic ignored "-Wdeprecated-copy"
 #  pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #  pragma GCC diagnostic ignored "-Wdeprecated-register"
 #  pragma GCC diagnostic ignored "-Wdisabled-macro-expansion"
@@ -50,6 +51,7 @@
 #  pragma GCC diagnostic push
 #  pragma GCC diagnostic ignored "-Wall"
 #  pragma GCC diagnostic ignored "-Wattributes"
+#  pragma GCC diagnostic ignored "-Wdeprecated-copy"
 #  pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #  pragma GCC diagnostic ignored "-Wextra"
 #  pragma GCC diagnostic ignored "-Wfloat-equal"
diff --git a/dune/xt/la/container/eigen/dense.hh b/dune/xt/la/container/eigen/dense.hh
index ef519edf4..c86efef35 100644
--- a/dune/xt/la/container/eigen/dense.hh
+++ b/dune/xt/la/container/eigen/dense.hh
@@ -185,6 +185,8 @@ public:
 
   using BaseType::operator=;
 
+  ThisType& operator=(const ThisType& other) = default;
+
   ThisType& operator=(const BackendType& other)
   {
     backend_ = std::make_shared<BackendType>(other);
-- 
GitLab