Comment

Comment by pjmlp

The ISO standard requires at() to be checked, while it leaves for implementations the freedom to decide if operator[]() is checked or not.

As such, checks for operator[]() are usually only enabled in debug builds, although Android and Red-Hat ship with them enabled into production.

Additionally, before C++ got a standard library, the frameworks that were shipped alongside compilers always had those checks enabled by default.

parent pjmlp 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton