Skip to content

Conversation

@legleux
Copy link
Collaborator

@legleux legleux commented Jun 29, 2022

I needed to add this to build with gcc-12

Copy link
Contributor

@natenichols natenichols left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to slack, you said we also had to add to WorkQueue? Do you still have to do that?

diff --git a/src/main/impl/Build.cpp b/src/main/impl/Build.cpp
index ebb9842..3c13a3f 100644
--- a/src/main/impl/Build.cpp
+++ b/src/main/impl/Build.cpp
@@ -2,6 +2,8 @@
 #include <boost/preprocessor/stringize.hpp>
 #include <algorithm>
 #include <main/Build.h>
+#include <optional>
+#include <stdexcept>
 
 namespace Build {
 
diff --git a/src/rpc/WorkQueue.h b/src/rpc/WorkQueue.h
index 236dd9a..4a29208 100644
--- a/src/rpc/WorkQueue.h
+++ b/src/rpc/WorkQueue.h
@@ -10,6 +10,7 @@
 #include <queue>
 #include <shared_mutex>
 #include <thread>
+#include <optional>
 
 class WorkQueue
 {

@legleux
Copy link
Collaborator Author

legleux commented Jun 29, 2022

According to slack, you said we also had to add to WorkQueue? Do you still have to do that?

yes, that's needed also. I screwed up after clang-format ing.
Hold please...

@natenichols natenichols mentioned this pull request Jun 29, 2022
@natenichols
Copy link
Contributor

I lied, its already in WorkQueue.h https://github.com/XRPLF/clio/blob/develop/src/rpc/WorkQueue.h/#L10

Copy link
Contributor

@natenichols natenichols left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you sign your commit so we can merge this?

@cjcobb23 cjcobb23 merged commit 35db5d3 into XRPLF:develop Jun 29, 2022
@legleux legleux deleted the gcc-12-patch branch June 29, 2022 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants