Przeglądaj źródła

Fixing wrong name in either_stream types

Samuel Jaffe 8 lat temu
rodzic
commit
8fa353e797
1 zmienionych plików z 1 dodań i 1 usunięć
  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)};
       }