<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/71498>71498</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`<iterator>`: `common_iterator`'s data member is public
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hewillk
</td>
</tr>
</table>
<pre>
https://github.com/llvm/llvm-project/blob/a700a520f86e8e667acfe95d8e71b9813120f35b/libcxx/include/__iterator/common_iterator.h#L66-L67
..which shouldn't.
```cpp
#include <iterator>
int main() {
std::common_iterator<int*, const int*> it;
return it.__hold_.index();
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUk2PozAM_TXmEg0KDiThwKHzwWn-Q5WAW7IbkoqEbfffr2g73dneVkJEeXbs5-dnUnLHQNRB8wrNe2HWPMWlm-jsvP9Z2Dj-7qacTwnEDrAH7I8uT6sthzgD9t7_-jpeTkv8QUMG7K2PFrA3inPTID9oSZqkVGY4UNuMmlRlW12JCvlBNFuqd3a4XAB7Fwa_jgTY7_cu02JyXAD7Ic5zDA-knADFp5Qvn1IBfwe-u_3L8jy5YWJpiqsfA6DK5fc4SH77htPpjqC4t2Qg3h4dxcf3Zy5kNhsXADVgy0C93nCW8rjpInZP_LZSIQPuAN_YEEPK7H4XH8xlEF8F2EJ5XQJzudzvp-jHfenCSJdbp0ceqPenAYqxE2MrWlNQV8m2FXXd8rqYOqO4kYILrqmhAY22tkUheDNaVLqqCtchR1FVXHFdNbwuD9ZK0q2wKA9W8wZqTrNxvty2WsblWLiUVupUVbe68MaST1e7IAY6s2sQEDf3LN3VCXY9Jqi5dymnv1Wyy566jf6_Qm_Ajm1LeRJRckCV2GiyYTPNlhbmEjut1ruhWBf__8a8ck2A_XWWPwEAAP__eNvmcA">