This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51850] debug mode for std::array and tr1::array
- From: "ed at edwardrosten dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Jan 2012 16:35:40 +0000
- Subject: [Bug libstdc++/51850] debug mode for std::array and tr1::array
- Auto-submitted: auto-generated
- References: <bug-51850-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51850
--- Comment #1 from Edward Rosten <ed at edwardrosten dot com> 2012-01-18 16:35:40 UTC ---
Created attachment 26368
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26368
Adds bounds checking to std::array and tr1::array in debug mode.
I've attached a patch which adds bounds checking to std::array (C++0x) and
std::tr1::array.
The std::array patch keeps operator[] as constexpr.