diff --git a/dune/xt/common/disable_warnings.hh b/dune/xt/common/disable_warnings.hh index 19fa9a5fe0cc2bab84d6d549276b513f3689425e..1520f1f78370106d3a217b8b59f500ca72c3aeae 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 ef519edf441a7077d4bb4a4c488cfe70be7a3ca6..c86efef359244bddc2ccb2d82d7b09c386782dd3 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);