From cb1b4f0930b868700ca768e1be6086d1f94664e6 Mon Sep 17 00:00:00 2001 From: Andreas Buhr Date: Tue, 6 Oct 2020 23:53:35 +0200 Subject: [PATCH] Small fixes to make gcc happy --- include/cppcoro/cancellation_registration.hpp | 1 + include/cppcoro/detail/sync_wait_task.hpp | 1 + include/cppcoro/fmap.hpp | 8 ++------ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/cppcoro/cancellation_registration.hpp b/include/cppcoro/cancellation_registration.hpp index 79eab909..64d267b5 100644 --- a/include/cppcoro/cancellation_registration.hpp +++ b/include/cppcoro/cancellation_registration.hpp @@ -11,6 +11,7 @@ #include #include #include +#include namespace cppcoro { diff --git a/include/cppcoro/detail/sync_wait_task.hpp b/include/cppcoro/detail/sync_wait_task.hpp index f36b6f8f..ee0b9fbc 100644 --- a/include/cppcoro/detail/sync_wait_task.hpp +++ b/include/cppcoro/detail/sync_wait_task.hpp @@ -12,6 +12,7 @@ #include #include #include +#include namespace cppcoro { diff --git a/include/cppcoro/fmap.hpp b/include/cppcoro/fmap.hpp index a339493c..74541e83 100644 --- a/include/cppcoro/fmap.hpp +++ b/include/cppcoro/fmap.hpp @@ -20,6 +20,8 @@ namespace cppcoro class fmap_awaiter { using awaiter_t = typename awaitable_traits::awaiter_t; + FUNC&& m_func; + awaiter_t m_awaiter; public: @@ -64,12 +66,6 @@ namespace cppcoro static_cast(m_func), static_cast(m_awaiter).await_resume()); } - - private: - - FUNC&& m_func; - awaiter_t m_awaiter; - }; template