From ba1824d27d17419c7df99e929532179dfcad584f Mon Sep 17 00:00:00 2001 From: Daniel Bauer <daniel.j.bauer@fau.de> Date: Thu, 25 May 2023 20:32:05 +0200 Subject: [PATCH] Fix compilation with gcc 13 --- src/core/RandomUUID.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/core/RandomUUID.h b/src/core/RandomUUID.h index 45c1c0808..7218ba938 100644 --- a/src/core/RandomUUID.h +++ b/src/core/RandomUUID.h @@ -20,10 +20,13 @@ #pragma once +#include "core/DataTypes.h" + #include <ostream> #include <string> -namespace walberla { +namespace walberla +{ /** * Replacement for boost::uuids::uuid and boost::uuids::random_generator @@ -34,7 +37,8 @@ class RandomUUID { friend bool operator==(const RandomUUID& lhs, const RandomUUID& rhs); friend bool operator!=(const RandomUUID& lhs, const RandomUUID& rhs); -public: + + public: using UIntType = uint64_t; RandomUUID(); @@ -47,9 +51,10 @@ public: */ std::string toString() const; - UIntType getFirstUInt() const {return a_;} - UIntType getSecondUInt() const {return b_;} -private: + UIntType getFirstUInt() const { return a_; } + UIntType getSecondUInt() const { return b_; } + + private: UIntType a_; ///< first part of the uuid UIntType b_; ///< second part of the uuid }; @@ -58,4 +63,4 @@ bool operator==(const RandomUUID& lhs, const RandomUUID& rhs); bool operator!=(const RandomUUID& lhs, const RandomUUID& rhs); std::ostream& operator<<(std::ostream& os, const RandomUUID& uuid); -} +} // namespace walberla -- GitLab