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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2025-03-21
         Depends on|                            |111055

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to 康桓瑋 from comment #0)
> Bug 118156 fixes the non-common range issue, and one of the new branches is:
> 
> else if constexpr (ranges::common_range<_Rg>)
>           __it = _M_cont.insert(_M_cont.end(), ranges::begin(__rg),
> ranges::end(__rg));

We have a patch sent to the mailing list that will add std::deque::insert_range
so I think we could use that here instead of insert (and that would work for
non-common ranges too).

Using insert_range wasn't an option until now, because not all our sequence
containers supported insert_range.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055
[Bug 111055] [C++23] Implement P1206R7, Conversions from ranges to containers

Reply via email to