Skip to content

Commit

Permalink
"CartesianGridUV": presuppose that the c++ version is >= C++11 (20110…
Browse files Browse the repository at this point in the history
…3L).
  • Loading branch information
ybedfer authored and andresailer committed Dec 9, 2024
1 parent 7f5c7ec commit c772acc
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions DDCore/src/segmentations/CartesianGridUV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,8 @@ CellID CartesianGridUV::cellID(const Vector3D& localPosition,
return cID;
}

std::vector<double> CartesianGridUV::cellDimensions(const CellID& /* cellID */) const {
#if __cplusplus >= 201103L
return {_gridSizeU, _gridSizeV};
#else
std::vector<double> cellDims(2,0.0);
cellDims[0] = _gridSizeU;
cellDims[1] = _gridSizeV;
return cellDims;
#endif
std::vector<double> CartesianGridUV::cellDimensions(const CellID& /* cellID */) const {
return {_gridSizeU, _gridSizeV};
}


Expand Down

0 comments on commit c772acc

Please sign in to comment.