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

--- Comment #13 from Mikael Persson <mikael.p.persson at gmail dot com> ---
Ah right lifetime

On Sun, 19 Dec 2021, 16:02 Mikael Persson, <mikael.p.pers...@gmail.com>
wrote:

> Looking at it now, not sure why i didnt.
>
> On Sun, 19 Dec 2021, 14:00 redi at gcc dot gnu.org, <
> gcc-bugzi...@gcc.gnu.org> wrote:
>
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91780
>>
>> --- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
>> Can't you just change your constructor to this?
>>
>>     zip(Containers&&... containers) :
>> containers_(std::forward<Containers>(containers)...) { }
>>
>>
>> The problematic deduction seems to only happen because of the odd
>> constructor
>> with an unused parameter pack that gets deduced as empty.
>>
>> --
>> You are receiving this mail because:
>> You reported the bug.
>
>

Reply via email to