Closed
Description
The following code fails on libc++ but works with other implementations:
#include <span>
struct Bar;
void foo(std::span<Bar> a) {
std::span<Bar> b(a);
}
The problem seems to be that we try testing for the range-based constructor of span, which hard-errors because we are checking the contiguous_range
constraint and end up performing arithmetic on a pointer to an incomplete type.
Metadata
Metadata
Assignees
Type
Projects
Status
Done