<div dir="auto">The proposed syntax is a bit misleading because the type is still a std::pair, not an int. Something like what Tiago wrote would make sense, where you can specify a type per bound name.<div dir="auto"><br></div><div dir="auto">However, I don&#39;t think implicit conversions would be appropriate here, so the rules would be different from a variable in the sense that you would always need to specify the type exactly. That also makes this whole thing a bit less powerful and useful though.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 11, 2024, 08:59 Oliver Schädlich via Std-Proposals &lt;<a href="mailto:std-proposals@lists.isocpp.org">std-proposals@lists.isocpp.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

  

    
  
  <div>
    <p>If all variables of a structured binding are the same I think
      structured<br>
      binding without type inference would improve the readability.<br>
      <br>
      <font face="monospace">    pair&lt;int, int&gt; pii;<br>
            int &amp;[a, b] = pii;</font></p>
    <p>Or:</p>
    <p><font face="monospace">    pair&lt;int, char&gt; pic;<br>
            int [a, b] = pic;</font></p>
    <p><br>
    </p>
    <p><br>
    </p>
  </div>

-- <br>
Std-Proposals mailing list<br>
<a href="mailto:Std-Proposals@lists.isocpp.org" target="_blank" rel="noreferrer">Std-Proposals@lists.isocpp.org</a><br>
<a href="https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals" rel="noreferrer noreferrer" target="_blank">https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals</a><br>
</blockquote></div>

