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

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 29 12:51:24 PDT 2022


Mordante added a comment.

In D122092#3414576 <https://reviews.llvm.org/D122092#3414576>, @ldionne wrote:

> It looks like we have the same issue in `vector<bool>` -- can we also fix it there? I think we only need one macro for both, so I'd make that change in this patch. Sorry for the churn.

`vector<bool> returns a `reference` or a `const_reference` as expected (https://en.cppreference.com/w/cpp/container/vector/operator_at)
Or am I missing something?


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