facebookexperimental / facebookexperimental/libunifex

Improve and rename `type_erased_stream` -> `any_stream_of`

Open
#567 0 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
1.7k
Forks
210
PR merge metrics
No merged PRs in 30d

Description

Following the `any_sender_of` pattern. There should be no need for a separate call to `type_erase` in order to get a `type_erased_stream` return type:

```C++
using namespace unifex;
// this should compile
any_stream_of stream() {
return range_stream{0, 10};
}
```

Improvements to be made:

1. `noexcept` correctness
2. reduce / eliminate `virtual` methods

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.