]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Remove non-standard public members in std::bitset
authorJonathan Wakely <jwakely@redhat.com>
Fri, 30 Sep 2022 13:57:24 +0000 (14:57 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 30 Sep 2022 20:52:02 +0000 (21:52 +0100)
commit4eb46f453cc74adf0055dae35cec41f4a4c4be5b
tree79e4ab88f3a6045195c2d2faa30dbf5747652aa2
parent7069d03ba4ad6133225b89d433d9e86f0b0745b8
libstdc++: Remove non-standard public members in std::bitset

This makes _M_copy_from_ptr, _M_copy_from_string and _M_copy_to_string
private, and declares operator<< and operator>> as friends.

Also remove the historical _M_copy_from_string and _M_copy_to_string
overloads. Those were used before DR 396 was implemented but are
not needed now. There are no tests or docs describing them, so I don't
think we intend to support them as extensions.

libstdc++-v3/ChangeLog:

* include/std/bitset (_M_copy_from_ptr, _M_copy_from_string)
(_M_copy_to_string): Change access to private.
(_M_copy_from_string(const basic_string&, size_t, size_t)):
Remove.
(_M_copy_to_string(const basic_string&)): Remove.
libstdc++-v3/include/std/bitset