This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/51850] debug mode for std::array and tr1::array


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]