From 25c906263f4053b8c96935dc076e7d7707fb25d7 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Fri, 11 Dec 2020 12:54:51 +0100
Subject: [PATCH] [MaL] Impl. non-const version of TemplatePoint::getCoords().

This helps to omit const_casts when the point
coordinates needs to be modified.
---
 MathLib/TemplatePoint.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/MathLib/TemplatePoint.h b/MathLib/TemplatePoint.h
index 644d43706c9..a1831f74869 100644
--- a/MathLib/TemplatePoint.h
+++ b/MathLib/TemplatePoint.h
@@ -79,6 +79,8 @@ public:
         return _x.data();
     }
 
+    T* getCoords() { return _x.data(); }
+
     /** write point coordinates into stream (used from operator<<)
      * \param os a standard output stream
      */
-- 
GitLab