[Patch] Missing definitions of static integral members in TR1
Paolo Carlini
pcarlini@suse.de
Mon Oct 30 16:13:00 GMT 2006
Hi,
a few days ago I noticed this issue, which often isn't easy to see
because the constants may be early optimized out during the compilation,
for example when used for template arguments and nowhere else. Still, I
think we should be conforming, while ""redundant"", at least for the
user-visible ones. A special, nasty, case is:
const int tuple_size<tuple<> >::value;
which, as far as I can see, should go in the library: I don't think
there are other ways to improve on it and I'm excluding it from the
patch, for now.
Tested x86-linux, would be a 4_2 candidate too.
Paolo.
///////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_static_const
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20061030/b32e76cf/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_static_const
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20061030/b32e76cf/attachment-0001.ksh>
More information about the Libstdc++
mailing list