Added comment about narrow contract for Span(T* begin, T* end) ctor#22291
Added comment about narrow contract for Span(T* begin, T* end) ctor#22291ViralTaco wants to merge 1 commit intobitcoin:masterfrom
Conversation
|
~0 ACK 39cb974 |
Defined behavior? |
|
The docs say that this is UB, so why would anyone assume the opposite? https://en.cppreference.com/w/cpp/container/span/span
|
|
|
Going to close this for now, given #22289 is also closed. |
Hi,
Following issue: #22289
It's completely overkill, even though it's just a comment. But it's what it'll take for me to sleep tonight.
I've only added a comment to clarrify that this constructor comes with a narrow contract.