From c772acc9f46155ae575c5b727f5473a21259b485 Mon Sep 17 00:00:00 2001 From: ybedfer Date: Mon, 9 Dec 2024 15:54:34 +0100 Subject: [PATCH] "CartesianGridUV": presuppose that the c++ version is >= C++11 (201103L). --- DDCore/src/segmentations/CartesianGridUV.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/DDCore/src/segmentations/CartesianGridUV.cpp b/DDCore/src/segmentations/CartesianGridUV.cpp index 635c37d00..78f50b03c 100644 --- a/DDCore/src/segmentations/CartesianGridUV.cpp +++ b/DDCore/src/segmentations/CartesianGridUV.cpp @@ -81,15 +81,8 @@ CellID CartesianGridUV::cellID(const Vector3D& localPosition, return cID; } - std::vector CartesianGridUV::cellDimensions(const CellID& /* cellID */) const { -#if __cplusplus >= 201103L - return {_gridSizeU, _gridSizeV}; -#else - std::vector cellDims(2,0.0); - cellDims[0] = _gridSizeU; - cellDims[1] = _gridSizeV; - return cellDims; -#endif +std::vector CartesianGridUV::cellDimensions(const CellID& /* cellID */) const { + return {_gridSizeU, _gridSizeV}; }