https://bugs.llvm.org/show_bug.cgi?id=44724
Bug ID: 44724
Summary: [span] Incorrect return type of span<T,
dynamic_extent>::subspan
Product: libc++
Version: 10.0
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: mschellenbergerco...@googlemail.com
CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com
According to the standard (https://eel.is/c++draft/views.span#span.sub-10) the
return type of ```std::span<T>::subspan<T, Count>``` should be ``` span<T,
Count> ```.
However, it is currently ```span<T, dynamic_extent>```
Consequently, calling ```std::span<T>::subspan<T, 4>``` would return
``std::span<T>``` rather than the intended ```std::span<T, 4>```.
There is already a PR open for that (https://reviews.llvm.org/D71997). Maybe
this raises awareness.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs