Open thorstink opened 5 years ago
Looks like a bug in the design of the make_observer overloads. See the overloads for DefaultOnError that are used by tap. There are multiple work arounds to disambiguate this. Specifying the error method (either as a function or the built in OnErrorIgnore), specifying the value argument type explicitly, calling make_observer directly with unambiguous args, etc..
Avoiding the auto in the tap indeed also helps.
In an attempt to learn, I'll toy around to see if I can come up with a pr that allows auto..
Hi :-),
I was trying to move all side-effects in my application into taps instead of in the subscribe methods;
However, the following snippet does not compile:
while the following does:
A part of the compile error is:
But it is not clear to me why this happens (if I look at the rxcpp twitter-example, I do not see the OnError explicitly defined in the tap-operators for instance..).