From 101405b13f33c8257e63af594b376a0d8af62a38 Mon Sep 17 00:00:00 2001
From: Maximilian Reininghaus <maximilian.reininghaus@kit.edu>
Date: Wed, 30 Jan 2019 20:14:00 +0100
Subject: [PATCH] new construtor for dimensionless QuantityVector

---
 Framework/Geometry/QuantityVector.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Framework/Geometry/QuantityVector.h b/Framework/Geometry/QuantityVector.h
index e0893e52..37088032 100644
--- a/Framework/Geometry/QuantityVector.h
+++ b/Framework/Geometry/QuantityVector.h
@@ -41,6 +41,13 @@ namespace corsika::geometry {
     QuantityVector(Quantity a, Quantity b, Quantity c)
         : eVector{a.magnitude(), b.magnitude(), c.magnitude()} {}
 
+    QuantityVector(double a, double b, double c)
+        : eVector{a, b, c} {
+      static_assert(
+          std::is_same_v<dim, phys::units::dimensionless_d>,
+          "initialization of dimensionful QuantityVector with pure numbers not allowed!");
+    }
+
     QuantityVector(Eigen::Vector3d pBareVector)
         : eVector(pBareVector) {}
 
-- 
GitLab