From a0236e3ace47562784ff04ba635b83c26c16fe15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Wed, 30 Oct 2024 10:40:49 +0100 Subject: [PATCH] Windows fixes --- src/Mesh.cpp | 4 ++-- src/UnitDimension.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mesh.cpp b/src/Mesh.cpp index 5839da7cab..69fc6a0263 100644 --- a/src/Mesh.cpp +++ b/src/Mesh.cpp @@ -277,7 +277,7 @@ Mesh &Mesh::setUnitDimension(std::map const &udim) if (!udim.empty()) { std::array tmpUnitDimension = this->unitDimension(); - auxiliary::fromMapOfUnitDimension(tmpUnitDimension.begin(), udim); + auxiliary::fromMapOfUnitDimension(tmpUnitDimension.data(), udim); setAttribute("unitDimension", tmpUnitDimension); } return *this; @@ -336,7 +336,7 @@ unit_representations::AsArrays Mesh::gridUnitDimension() const // if it is missing, the mesh is interpreted as spatial std::array spatialMesh; auxiliary::fromMapOfUnitDimension( - spatialMesh.begin(), {{UnitDimension::L, 1}}); + spatialMesh.data(), {{UnitDimension::L, 1}}); auto dim = retrieveMeshDimensionality(*this); unit_representations::AsArrays res(dim, spatialMesh); return res; diff --git a/src/UnitDimension.cpp b/src/UnitDimension.cpp index b2d36e7b8e..a2420defec 100644 --- a/src/UnitDimension.cpp +++ b/src/UnitDimension.cpp @@ -21,7 +21,7 @@ namespace unit_representations auto asArray(AsMap const &udim) -> AsArray { AsArray res; - auxiliary::fromMapOfUnitDimension(res.begin(), udim); + auxiliary::fromMapOfUnitDimension(res.data(), udim); return res; } auto asMap(AsArray const &array) -> AsMap