-
Notifications
You must be signed in to change notification settings - Fork 397
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
documentation bug, create needs a template parameter. #386
Comments
I think the template parameter can be inferred by the type of the lambda passed in... I see it being too verbose having a template parameter on create and on subscriber as well if they always match... I think that the way the documentation had it (without the template parameters) was cleaner and nicer |
Yes, that is true when using the type-forgetting Thoughts? |
What exactly do you mean by "type forgetting |
type-forgetting is expensive and should be used only when needed. If a create overload was added to remove the template param when using type-forgetting it would look like this. auto ints = rxcpp::observable<>::create( [](rxcpp::subscriber<int> s){ s.on_next(1); s.on_next(2); s.on_completed(); }); However, the existing overload would still be needed when the type is not forgotten. auto ints = rxcpp::observable<>::create<int>( [](auto s){ s.on_next(1); s.on_next(2); s.on_completed(); }); There is no way that create could extract |
On the Gitter channel -
Peter Majchrak @petoknm Jul 09 09:54
i was missing a template parameter for create
please update http://reactive-extensions.github.io/RxCpp/ to reflect that. thanks
The text was updated successfully, but these errors were encountered: