Skip to content
Snippets Groups Projects
Commit 0c8b4b92 authored by Markus Holzer's avatar Markus Holzer
Browse files

Merge branch 'bauerd/fix-include-gcc13' into 'master'

Fix compilation with gcc 13

See merge request !614
parents 714a867f ba1824d2
No related merge requests found
......@@ -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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment