From db2a27f6f8597846ebfe634753ba3eff65ec6b49 Mon Sep 17 00:00:00 2001
From: Sebastian Eibl <sebastian.eibl@fau.de>
Date: Mon, 11 Jan 2021 17:19:12 +0100
Subject: [PATCH] make string literal _r constexpr

---
 src/core/DataTypes.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/DataTypes.h b/src/core/DataTypes.h
index 28fdf80c7..121f836c5 100644
--- a/src/core/DataTypes.h
+++ b/src/core/DataTypes.h
@@ -163,8 +163,8 @@ typedef double real_t;
 typedef float  real_t;
 #endif
 
-inline real_t operator"" _r( long double t ) { return static_cast< real_t >(t); }
-inline real_t operator"" _r( unsigned long long int t ) { return static_cast< real_t >(t); }
+inline constexpr real_t operator"" _r( long double t ) { return static_cast< real_t >(t); }
+inline constexpr real_t operator"" _r( unsigned long long int t ) { return static_cast< real_t >(t); }
 template< typename T > inline real_t real_c  ( T t ) { return numeric_cast< real_t >(t); } ///< cast to type real_t using "real_c(x)"
 template< typename T > inline double double_c( T t ) { return numeric_cast< double >(t); } ///< cast to type double
 template< typename T > inline float  float_c ( T t ) { return numeric_cast< float > (t); } ///< cast to type float
-- 
GitLab