Explorar o código

Fixing wrong name in either_stream types

Samuel Jaffe %!s(int64=8) %!d(string=hai) anos
pai
achega
8fa353e797
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      either_stream.hpp

+ 1 - 1
either_stream.hpp

@@ -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)};
       }