<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/96794>96794</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libc++] Poor diagnostic for signedness mismatch in std::ranges::iota
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc++,
ranges
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ldionne
</td>
</tr>
</table>
<pre>
From #91385:
> The compiler error for the most common iota(0, vec.size()) with clang is not great. I was also wondering if instead of raising the error via a failure in the requires clause of the iota_view constructor guideline, it could be maybe raised earlier, e.g., from iota itself, with a nice message.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxMUk1vnDAQ_TXmMgoC87UcOCTZrtRbD71Xgz3AVMZOPWZX6a-vTFK1EsLwbL83b-ahCK-eaFLdi-quBR5pC3FyloP3VMzBvk-3GHZQuhnr5tKp5llVV1X9fTdf4PtGYML-xo4iUIwhwhIipI1gD5Ly3h48cEio9KVS-hXuZErh36T0RelR6REenDYwDv0KLOBDgjUSphK-wgMF0EmAR_CWIucjC7CXRGghLBCRJaNZ8UP_zggIC7I7IgH7cyvSr4MjSZY5hPLNDOe6ftyZHmCClxQPk0KE9WBLjj3lcjmbOJyFmWDH95lOSbJAGB1TzGeoXMu8LrlbmRM4CbklY6c5BM-GYCcRXKks7NTYsRmxoKke6rGtx26oi23q7KW3pu76ZmharGrscDYDacJmGPXSFTzpSrdVr_u6b3RXl_Wl74e2xxq1MQ2SaivakV3p3H0vQ1wLFjloGvthbAuHMzk5B66149ko_XI-WulXpXVEv5Lk3-5axClzPM3HKqqtHEuSf6yJkzuT8x9Ld4VvIUSwjKsPkticYThTZj2JwM6yYzJbHoskmwPVPH-Knt-5ecUR3bSl9HZi-qb0beW0HXNpwq70LdfwuTy9xfCTTFL6dtoUpW8fTu-T_hMAAP__-kzvTw">