| Issue |
234339
|
| Summary |
[libc++] Tag `__static_bounded_iter`, `__static_packed_bounded_iter and `__capacity_aware_iterator`
|
| Labels |
libc++
|
| Assignees |
smallp-o-p
|
| Reporter |
ldionne
|
See https://github.com/llvm/llvm-project/pull/203782#discussion_r4340992640.
The goal is to prevent something like this from compiling:
```
#define _LIBCPP_ABI_BOUNDED_ITERATORS_IN_VECTOR
#define _LIBCPP_ABI_BOUNDED_ITERATORS_IN_OPTIONAL
void f(std::optional<T> opt, std::vector<T> vec) {
auto it1 = opt.begin();
auto it2 = vec.begin();
it1 = it2; // kinda weird, no?
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs