raw_span<T> = span<T, dynamic_extent>

416 views
Skip to first unread message

Bartek Nowierski

unread,
Jun 16, 2024, 5:10:27 AM6/16/24
to memory-safety-dev, Ali Hijazi, Bartek Nowierski
Hey,

I always thought base::raw_span<> is exactly like base::span<> but with raw_ptr<> used underneath. I just realized that this isn't always the case:

This makes a conversion span->raw_span a bit more tricky, as this isn't necessarily always an improvement...


Bartek

Thomas Sepez

unread,
Jun 16, 2024, 10:36:37 AM6/16/24
to Bartek Nowierski, memory-safety-dev, Ali Hijazi
Looks like there's an arg missing from the template. Could you file a bug and assign to me.?
--
You received this message because you are subscribed to the Google Groups "memory-safety-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memory-safety-...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/memory-safety-dev/CA%2B%2B_KbTGHMdfHZtA3dpsXcxvzrGg1HUsc%3D70nJXiMv3grKHobg%40mail.gmail.com.

Bartek Nowierski

unread,
Jun 16, 2024, 11:42:38 AM6/16/24
to Thomas Sepez, memory-safety-dev, Ali Hijazi
File crbug.com/347495369

What's the best component for the span(ification) bugs?

Thanks!

Reply all
Reply to author
Forward
0 new messages