|
|
@@ -52,7 +52,7 @@ namespace stream { namespace either {
|
|
|
}
|
|
|
|
|
|
template <typename F>
|
|
|
- either_stream<variant<flatmap_f<F, T>, E>> flatmap(F && fun) const {
|
|
|
+ either_stream<::either<flatmap_f<F, T>, E>> flatmap(F && fun) const {
|
|
|
using next_t = either_stream<::either<flatmap_f<F, T>, E>>;
|
|
|
return value.index() == 0 ? next_t{fun(std::get<0>(value))} : next_t{std::get<1>(value)};
|
|
|
}
|