Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve and rename type_erased_stream -> any_stream_of #567

Open
janondrusek opened this issue Oct 6, 2023 · 0 comments
Open

Improve and rename type_erased_stream -> any_stream_of #567

janondrusek opened this issue Oct 6, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@janondrusek
Copy link
Contributor

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:

using namespace unifex;
// this should compile
any_stream_of<int> stream() {
  return range_stream{0, 10};
}

Improvements to be made:

  1. noexcept correctness
  2. reduce / eliminate virtual methods
@janondrusek janondrusek added the enhancement New feature or request label Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant