[cfe-dev] Bound checking []

François Fayard fayard.francois.spam at icloud.com
Fri Jul 11 09:41:30 PDT 2014


Hi,

I am running OSX Mavericks and I can't find a way to get bound checking on the [] operator for std::array and std::vector. I don't want to use .at as I am using bound checking in debug mode but not in release mode.

Both the GNU libstdc++ and Microsoft STL implementation provide a way to get bound checking with this operator. Can we expect to get one in libc++ ?

Best regards,
François



More information about the cfe-dev mailing list