From 82237a0c1c38352160451c9463cd59e0d6cf1290 Mon Sep 17 00:00:00 2001 From: Oliver Hahn Date: Thu, 10 Nov 2022 11:16:28 +0100 Subject: [PATCH] removed compilation problems with GCC 12 --- include/general.hh | 1 + include/math/vec3.hh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/general.hh b/include/general.hh index 05feb0a..dcf4388 100644 --- a/include/general.hh +++ b/include/general.hh @@ -20,6 +20,7 @@ #include #include +#include #if defined(USE_MPI) #include diff --git a/include/math/vec3.hh b/include/math/vec3.hh index bbaffbc..593c725 100644 --- a/include/math/vec3.hh +++ b/include/math/vec3.hh @@ -30,7 +30,7 @@ public: //! empty constructor vec3_t() - : x(data_[0]),y(data_[1]),z(data_[2]){} + : data_{{T(0),T(0),T(0)}},x(data_[0]),y(data_[1]),z(data_[2]){} //! copy constructor vec3_t( const vec3_t &v)