C++ Logo

std-proposals

Advanced search

[std-proposals] The member functions of std::vector<bool>::reference and std::bitset::reference (except for ctors and dtors) should all be const

From: blacktea hamburger <greenteahamburger_at_[hidden]>
Date: Fri, 7 Oct 2022 19:41:50 +0800
std::vector<bool>::reference and std::bitset::reference are both proxies,
so even if they themselves are const, they can still be used to change the
bit they reference.

Are there any issues?

Received on 2022-10-07 11:42:19