gcc/libstdc++-v3/testsuite/23_containers
Jonathan Wakely 12a88e6e20 libstdc++: Deprecate non-standard std::vector<bool>::insert(pos) [PR104559]
The SGI STL and pre-1998 drafts of the C++ standard had a default
argument for vector<bool>::insert(iterator, const bool&) which was
remove by N1051. The default argument is still present in libstdc++ for
some reason. There are no tests verifying it as an extension, so I don't
think it has been kept intentionally.

This removes the default argument but adds an overload without the
second parameter, and adds the deprecated attribute to it. This allows
any code using it to keep working (for now) but with a warning.

libstdc++-v3/ChangeLog:

	PR libstdc++/104559
	* doc/xml/manual/evolution.xml: Document deprecation.
	* doc/html/manual/api.html: Regenerate.
	* include/bits/stl_bvector.h (insert(const_iterator, const bool&)):
	Remove default argument.
	(insert(const_iterator)): New overload with deprecated attribute.
	* testsuite/23_containers/vector/bool/modifiers/insert/104559.cc:
	New test.
2022-02-17 23:44:25 +00:00
..
array Declare std::array members with attribute const [PR101831]. 2022-02-01 17:21:49 -07:00
bitset Update copyright years. 2022-01-03 10:42:10 +01:00
deque libstdc++: Prevent -Wstringop-overread warning in std::deque [PR100516] 2022-01-27 23:31:03 +00:00
forward_list libstdc++: Add self-merge check to std::forward_list::merge [PR103853] 2022-01-06 14:56:48 +00:00
headers Update copyright years. 2022-01-03 10:42:10 +01:00
list Update copyright years. 2022-01-03 10:42:10 +01:00
map Update copyright years. 2022-01-03 10:42:10 +01:00
multimap Update copyright years. 2022-01-03 10:42:10 +01:00
multiset libstdc++: Fix invalid instantiations in tests 2022-02-02 17:08:54 +00:00
priority_queue Update copyright years. 2022-01-03 10:42:10 +01:00
queue Update copyright years. 2022-01-03 10:42:10 +01:00
set libstdc++: Fix invalid instantiations in tests 2022-02-02 17:08:54 +00:00
span Update copyright years. 2022-01-03 10:42:10 +01:00
stack Update copyright years. 2022-01-03 10:42:10 +01:00
unordered_map libstdc++: Restore support for unordered_map<const T, ...> [PR104174] 2022-01-23 22:47:00 +00:00
unordered_multimap Update copyright years. 2022-01-03 10:42:10 +01:00
unordered_multiset Update copyright years. 2022-01-03 10:42:10 +01:00
unordered_set Update copyright years. 2022-01-03 10:42:10 +01:00
vector libstdc++: Deprecate non-standard std::vector<bool>::insert(pos) [PR104559] 2022-02-17 23:44:25 +00:00