https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119415

--- Comment #5 from 康桓瑋 <hewillk at gmail dot com> ---
(In reply to Tomasz Kamiński from comment #4)
> If want to support user-defined containers, I think we should check if
> iterator_traits<It>::iterator category exists, before calling
> insert(Iterator, Iterator) overload.
> 
> This will prevent hard-errors from older code, that do not handle C++20
> iterators. In case where they are supported, users can add insert_range
> overload.

which is also https://eel.is/c++draft/ranges#range.utility.conv.to-2.1.3.2.

Reply via email to