Explorar el Código

Fixing wrong name in either_stream types

Samuel Jaffe hace 8 años
padre
commit
8fa353e797
Se han modificado 1 ficheros con 1 adiciones y 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)};
       }