From 057ace774cc1dae84b0e4a7c0c5d1725e12331a7 Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller Date: Mon, 4 Nov 2024 10:51:53 +0100 Subject: [PATCH] Fix tensor conversion --- include/deal.II/base/tensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5