Skip to content

Commit

Permalink
Small fixes to make gcc happy
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasbuhr authored and lewissbaker committed Oct 12, 2020
1 parent fdb7a74 commit 8929f9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions include/cppcoro/cancellation_registration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <utility>
#include <type_traits>
#include <atomic>
#include <cstdint>

namespace cppcoro
{
Expand Down
1 change: 1 addition & 0 deletions include/cppcoro/detail/sync_wait_task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <experimental/coroutine>
#include <cassert>
#include <exception>
#include <utility>

namespace cppcoro
{
Expand Down
8 changes: 2 additions & 6 deletions include/cppcoro/fmap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ namespace cppcoro
class fmap_awaiter
{
using awaiter_t = typename awaitable_traits<AWAITABLE&&>::awaiter_t;
FUNC&& m_func;
awaiter_t m_awaiter;

public:

Expand Down Expand Up @@ -64,12 +66,6 @@ namespace cppcoro
static_cast<FUNC&&>(m_func),
static_cast<awaiter_t&&>(m_awaiter).await_resume());
}

private:

FUNC&& m_func;
awaiter_t m_awaiter;

};

template<typename FUNC, typename AWAITABLE>
Expand Down

0 comments on commit 8929f9c

Please sign in to comment.