[cfe-dev] [libc++]: vector<bool>::const_reference and bitset<N>::const_reference

John Bytheway jbytheway+llvm at gmail.com
Sat Jul 9 10:34:18 PDT 2011


On 09/07/11 16:54, Howard Hinnant wrote:
> For those interested in libc++ issues, I'd like to draw your attention to:
> 
> http://llvm.org/bugs/show_bug.cgi?id=10314
> 
> and request comments on the issue.

Exactly how to handle reference types in these containers has been a
blight on the standard for a long time.  I think it would be unwise to
further muddy the waters.  Deviating from the standard in these corner
cases is exactly the sort of thing that comes back to bite you later.

If other popular standard library implementations made the same change
then that might be reason enough to do it, but glancing at libstdc++, it
seems that uses the standard definitions.

John Bytheway




More information about the cfe-dev mailing list