[libcxx-commits] [PATCH] D122092: [libc++] `bitset::operator[] const` should return bool

Richard Smith - zygoloid via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 14 11:01:52 PDT 2022


rsmith added a comment.

Is it intentional that this leaves `std::vector<bool>::const_iterator::reference` as the class type? We're seeing some breakage in `absl` due to that.

We're also seeing some breakage due to the result of `std::bitset::operator[]() const` no longer being convertible to `std::bitset::const_reference`, which would at least have been easier to understand if the `const_reference` typedef were removed entirely.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122092/new/

https://reviews.llvm.org/D122092



More information about the libcxx-commits mailing list