Open ericniebler opened 5 years ago
In split_view::outer_iterator<V, Pattern>, when V is not const-iterable, we must avoid forming the type iterator_t<const V> since it will fail to compile.
split_view::outer_iterator<V, Pattern>
V
iterator_t<const V>
constexpr outer_iterator(outer_iterator<!Const> i) - requires Const && ConvertibleTo<iterator_t<V>, iterator_t<const V>>; + requires Const && ConvertibleTo<iterator_t<V>, iterator_t<Base>>;
EDIT: I'm actually not 100% certain this change is necessary or if it is merely needed to avoid a gcc bug.
In
split_view::outer_iterator<V, Pattern>
, whenV
is not const-iterable, we must avoid forming the typeiterator_t<const V>
since it will fail to compile.Proposed Resolution
EDIT: I'm actually not 100% certain this change is necessary or if it is merely needed to avoid a gcc bug.