[libcxx-commits] [libcxx] [libc++] Cooperation between `std::optional` and other standard types (PR #93672)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 29 06:16:09 PDT 2025


philnik777 wrote:

> It seems that we can also compress `std::optional<std::span<T, N>>` where `N != std::dynamic_extent`, as it's probably UB to construct such a `span` with a null value.

Only for `N > 0`.

https://github.com/llvm/llvm-project/pull/93672


More information about the libcxx-commits mailing list