Skip to content

Commit 8929f9c

Browse files
andreasbuhrlewissbaker
authored andcommitted
Small fixes to make gcc happy
1 parent fdb7a74 commit 8929f9c

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

include/cppcoro/cancellation_registration.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <utility>
1212
#include <type_traits>
1313
#include <atomic>
14+
#include <cstdint>
1415

1516
namespace cppcoro
1617
{

include/cppcoro/detail/sync_wait_task.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <experimental/coroutine>
1313
#include <cassert>
1414
#include <exception>
15+
#include <utility>
1516

1617
namespace cppcoro
1718
{

include/cppcoro/fmap.hpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ namespace cppcoro
2020
class fmap_awaiter
2121
{
2222
using awaiter_t = typename awaitable_traits<AWAITABLE&&>::awaiter_t;
23+
FUNC&& m_func;
24+
awaiter_t m_awaiter;
2325

2426
public:
2527

@@ -64,12 +66,6 @@ namespace cppcoro
6466
static_cast<FUNC&&>(m_func),
6567
static_cast<awaiter_t&&>(m_awaiter).await_resume());
6668
}
67-
68-
private:
69-
70-
FUNC&& m_func;
71-
awaiter_t m_awaiter;
72-
7369
};
7470

7571
template<typename FUNC, typename AWAITABLE>

0 commit comments

Comments
 (0)