diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-08-21 21:19:46 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-08-23 13:18:19 +0100 |
commit | b25b101bc380004b82e25d2b1ef306856c75d864 (patch) | |
tree | 67bd8259b5a03d109f17a6557fe5f687b323b38d /libcpp | |
parent | f9f599a44e3156a5f5679adc048ec6ff2f44cc0e (diff) | |
download | gcc-b25b101bc380004b82e25d2b1ef306856c75d864.zip gcc-b25b101bc380004b82e25d2b1ef306856c75d864.tar.gz gcc-b25b101bc380004b82e25d2b1ef306856c75d864.tar.bz2 |
libstdc++: Make std::vector<bool>::reference constructor private [PR115098]
The standard says this constructor should be private. LWG 4141 proposes
to remove it entirely. We still need it, but it doesn't need to be
public.
For std::bitset the default constructor is already private (and never
even defined) but there's a non-standard constructor that's public, but
doesn't need to be.
libstdc++-v3/ChangeLog:
PR libstdc++/115098
* include/bits/stl_bvector.h (_Bit_reference): Make default
constructor private. Declare vector and bit iterators as
friends.
* include/std/bitset (bitset::reference): Make constructor and
data members private.
* testsuite/20_util/bitset/115098.cc: New test.
* testsuite/23_containers/vector/bool/115098.cc: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions