Skip to content

Commit 3344450

Browse files
committed
fix: add missing epoll_context::task aliasing
1 parent 61e5891 commit 3344450

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ A C++ **asynchronous I/O** library based on [sender/receiver model](https://wg21
3535

3636
### Build Options
3737
- `COIO_BUILD_EXAMPLES` (`ON`/`OFF`, default `OFF`) - Build example programs
38-
- `COIO_BUILD_TESTS` (`ON/OFF`, default `OFF`) - Build **doctest**-based tests
38+
- `COIO_BUILD_TESTS` (`ON/OFF`, default `OFF`) - Build [**doctest**](https://github.com/doctest/doctest)-based tests
3939
- `COIO_BUILD_WITH_ASAN` (`ON`/`OFF`, default `OFF`) - Whether to enable **AddressSanitizer**
4040
- `COIO_BUILD_WITH_TSAN` (`ON`/`OFF`, default `OFF`) - Whether to enable **ThreadSanitizer**
4141
- `COIO_BUILD_WITH_UBSAN` (`ON`/`OFF`, default `OFF`) - Whether to enable **UndefinedBehaviorSanitizer**

include/coio/asyncio/epoll_context.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,6 @@ namespace coio {
182182
Sexpr sexpr;
183183
};
184184

185-
template<typename T = void, typename Alloc = void>
186-
using task = coio::task<T, Alloc, scheduler>;
187-
188185
public:
189186
using scheduler_base::scheduler_base;
190187

@@ -203,6 +200,9 @@ namespace coio {
203200
friend auto operator== (const scheduler& lhs, const scheduler& rhs) -> bool = default;
204201
};
205202

203+
template<typename T = void, typename Alloc = void>
204+
using task = coio::task<T, Alloc, scheduler>;
205+
206206
private:
207207
explicit epoll_context(std::nullptr_t, std::pmr::memory_resource& memory_resource) noexcept :
208208
loop_base(memory_resource), epoll_fd_(-1) {}

0 commit comments

Comments
 (0)