https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107015

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
In C++11 and later (when bitset<N>::reference doesn't use the debug mode
iterator validity checks) the only benefit to __debug::bitset is that we check
the argument to operator[] is in range, using __glibcxx_check_subscript. But we
could just move that into std::bitset anyway. It's a cheap check that is
enabled with _GLIBCXX_ASSERTIONS.

Reply via email to