From: Rene Gassmoeller Date: Mon, 4 Nov 2024 09:51:53 +0000 (+0100) Subject: Fix tensor conversion X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=057ace774cc1dae84b0e4a7c0c5d1725e12331a7;p=dealii.git Fix tensor conversion --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index b7f2c0e530..f3888740ce 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -1426,7 +1426,7 @@ constexpr DEAL_II_ALWAYS_INLINE Tensor:: operator Tensor<1, dim, Tensor>() const { Tensor<1, dim, Tensor> x; - std::copy(values.begin(), values.end(), x.values.begin()); + std::copy(values.data(), values.data() + values.size(), x.values.data()); return x; }