Add <initializer_list> to stdc++.h and ruminations on aggregation headers
Ed Smith-Rowland
3dw4rd@verizon.net
Fri Sep 25 01:45:00 GMT 2009
All,
I was looking at Bjarne Stroustrups proposal n2905.pdf for aggregation
headers and looking at our own in precomp.
His std-all is basically our stdc++.h except that the latter doesn't
have <initializer_list>. I know it really is in there but I thought it
might be nice to put it in there explicitly for forms sake. See the
patch and changelog.
Also attached are simple implementations of std-all and std-checked to
play with and some toy drivers.
In particular, is there anything we could add to std-checked that
libstdc++ checks?
Maybe if someone, say, includes <vector> and then includes <std-checked>
we should yell because (unless they threw the debug flag on the command
line) they won't get the range checking.
We could add an ext-all.
Naturally, these would be candidates for user pch.
Of course these aggregation headers are not in the std yet ;-). These
are just to think about.
But the patchlet adding <initializer_list> to stdc++.h is bootstrapped
and regtested on powerpc-apple-darwin7.9.0.
Ed
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: std_checked.cpp
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090925/54eefe7c/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: std_all.cpp
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090925/54eefe7c/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: std-checked
Type: video/x-flv
Size: 2008 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090925/54eefe7c/attachment.flv>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: std-all
Type: video/x-flv
Size: 2742 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090925/54eefe7c/attachment-0001.flv>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CL_stdc++
Type: video/x-flv
Size: 135 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090925/54eefe7c/attachment-0002.flv>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stdc++.patch
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090925/54eefe7c/attachment-0002.ksh>
More information about the Libstdc++
mailing list