[v3] libstdc++/53248

Marc Glisse marc.glisse@inria.fr
Wed Oct 3 18:19:00 GMT 2012


On Wed, 3 Oct 2012, Paolo Carlini wrote:

> thus this is the patch I prepared for this issue, consistently (I hope!) with 
> the various points discussed in the audit trail, with Daniel too. In 
> particular: 1- We'd rather prefer not use a specialization; 2- Having begin() 
> and end() always returning nullptr for zero-sized-arrays is fine.
>
> Of course the patch could be tweaked in various different ways but if nobody 
> has special suggestions this is the version I'm going to commit.

A quick look gives me the impression that:
1) it breaks the ABI for arrays of dim 0 (I don't mind)
2) it breaks the API by changing the number of levels of {} you need to 
add to initialize for instance an array of arrays
3) it uses *p where p is a null pointer (it only builds a reference 
though, so that might be ok)

That's a really quick look so I am probably wrong, I just wanted to make 
sure it was checked.

-- 
Marc Glisse



More information about the Libstdc++ mailing list