https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532
--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> --- Span is a view, so it is like reference-wrapper. The lifetime of the underlying data is not tied to the lifetime of the Span.
redi at gcc dot gnu.org via Gcc-bugs Fri, 10 Mar 2023 08:52:43 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532
--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> --- Span is a view, so it is like reference-wrapper. The lifetime of the underlying data is not tied to the lifetime of the Span.