Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
waLBerla
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Markus Holzer
waLBerla
Commits
0c8b4b92
Commit
0c8b4b92
authored
2 years ago
by
Markus Holzer
Browse files
Options
Downloads
Plain Diff
Merge branch 'bauerd/fix-include-gcc13' into 'master'
Fix compilation with gcc 13 See merge request
walberla/walberla!614
parents
714a867f
ba1824d2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/RandomUUID.h
+11
-6
11 additions, 6 deletions
src/core/RandomUUID.h
with
11 additions
and
6 deletions
src/core/RandomUUID.h
+
11
−
6
View file @
0c8b4b92
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment