[COMMIT seastar master] coroutine/exception: do not include core/coroutine.hh

1 visning
Gå til det første ulæste opslag

Commit Bot

<bot@cloudius-systems.com>
ulæst,
26. jan. 2023, 04.55.3226.01.2023
til seastar-dev@googlegroups.com, Kefu Chai
From: Kefu Chai <kefu...@scylladb.com>
Committer: Avi Kivity <a...@scylladb.com>
Branch: master

coroutine/exception: do not include core/coroutine.hh

otherwise `coroutine/exception.hh` and `core/coroutine.hh` would
each other. this is not necessary, as `coroutine/exception.hh` does not
use the symbols declared by the latter.

in this change, the used headers are included in
`coroutine/exception.hh` instead.

Signed-off-by: Kefu Chai <kefu...@scylladb.com>

---
diff --git a/include/seastar/coroutine/exception.hh b/include/seastar/coroutine/exception.hh
--- a/include/seastar/coroutine/exception.hh
+++ b/include/seastar/coroutine/exception.hh
@@ -21,8 +21,9 @@

#pragma once

-#include <seastar/core/coroutine.hh>
+#include <seastar/core/future.hh>
#include <coroutine>
+#include <exception>

namespace seastar {

Svar alle
Svar til forfatter
Videresend
0 nye opslag