Skip to content

Commit

Permalink
Work around MSVC error
Browse files Browse the repository at this point in the history
MSVC is complaining that `using default_sequence_traits::for_each_while` in `drop_adaptor::sequence_traits` references an unknown base class, which doesn't make a lot of sense as it very definitely does inherit from it... but never mind, we'll work around it anyway
  • Loading branch information
tcbrindle committed Aug 20, 2024
1 parent ff4ea63 commit 561c6c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/flux/op/drop.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ struct drop_adaptor : inline_sequence_base<drop_adaptor<Base>> {
return flux::data(self.base()) + (cmp::min)(self.count_, flux::size(self.base_));
}

using default_sequence_traits::for_each_while;
static constexpr auto for_each_while(auto& self, auto&& pred) -> cursor_t<Base>
{
return default_sequence_traits::for_each_while(self, FLUX_FWD(pred));
}
};
};

Expand Down

0 comments on commit 561c6c8

Please sign in to comment.