[v3] constexpr array additions
Benjamin Kosnik
bkoz@redhat.com
Thu Jul 21 10:05:00 GMT 2011
Also pointed out by Daniel.
It's kind of hokey to work around -fno-exceptions like this, but seems
harmless. In this particular case, deferring the throw to a function
like __throw_out_of_range makes the ::at member an invalid constant
expression.
Yay! std::array with compile time operator []!
tested x86/linux
-benjamin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20110720-4.patch
Type: text/x-patch
Size: 2717 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20110721/8e533236/attachment.bin>
More information about the Libstdc++
mailing list