diff options
author | Xiaoyang Liu <siujoeng.lau@gmail.com> | 2024-03-20 01:47:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 09:47:40 +0100 |
commit | cf09b7dec463178fbdefc72dc262d209d865c1c9 (patch) | |
tree | a953dfa44e087cfd103e6a8d1c00afc89b4a06dd /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 272d1b44efdedb68c194970a610f0ca1b7b769c5 (diff) | |
download | llvm-cf09b7dec463178fbdefc72dc262d209d865c1c9.zip llvm-cf09b7dec463178fbdefc72dc262d209d865c1c9.tar.gz llvm-cf09b7dec463178fbdefc72dc262d209d865c1c9.tar.bz2 |
[libc++][ranges] LWG3715: `view_interface::empty` is overconstrained (#85004)
## Abstract
This pull request implements LWG3715: `view_interface::empty` is
overconstrained. Here is an example similar to those described in the
report, which compiles with `-stdlib=libstdc++` but failed to compile
with `-stdlib=libc++`:
```cpp
// https://godbolt.org/z/EWEoTzah3
std::istringstream input("1 2 3 4 5");
auto i = std::views::istream<int>(input);
auto r = std::views::counted(i.begin(), 4) | std::views::take(2);
assert(!r.empty());
```
## Reference
- [Draft C++ Standard:
[view.interface.general]](https://eel.is/c++draft/view.interface.general)
- [LWG3715](https://wg21.link/LWG3715)
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions