Merge branch 'rafzi-patch-1'

This commit is contained in:
Andrew Pardoe 2016-04-24 09:54:06 -07:00
commit e54a779669

View File

@ -15415,10 +15415,10 @@ Pointers should not be used as arrays. `span` is a bounds-checked, safe alternat
void f()
{
int a[5];
span av = a;
span<int> av = a;
g(a.data(), a.length()); // OK, if you have no choice
g1(a); // OK -- no decay here, instead use implicit span ctor
g(av.data(), av.length()); // OK, if you have no choice
g1(av); // OK -- no decay here, instead use implicit span ctor
}
##### Enforcement