gcc/libstdc++-v3/include/bits
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
..
algorithmfwd.h Update copyright years. 2022-01-03 10:42:10 +01:00
align.h Update copyright years. 2022-01-03 10:42:10 +01:00
alloc_traits.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
allocated_ptr.h Update copyright years. 2022-01-03 10:42:10 +01:00
allocator.h libstdc++: Add suggestion to std::uncaught_exception() warning 2022-02-04 15:26:59 +00:00
atomic_base.h Update copyright years. 2022-01-03 10:42:10 +01:00
atomic_futex.h Update copyright years. 2022-01-03 10:42:10 +01:00
atomic_timed_wait.h Update copyright years. 2022-01-03 10:42:10 +01:00
atomic_wait.h libstdc++: Strengthen memory order for atomic<T>::wait/notify 2022-02-10 10:14:36 -08:00
basic_ios.h Update copyright years. 2022-01-03 10:42:10 +01:00
basic_ios.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
basic_string.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
basic_string.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
boost_concept_check.h libstdc++: Fix link failure in _OutputIteratorConcept 2022-02-02 16:30:51 +00:00
c++0x_warning.h Update copyright years. 2022-01-03 10:42:10 +01:00
c++config libstdc++: Use __cpp_concepts instead of custom macro [PR103891] 2022-02-14 13:03:31 +00:00
char_traits.h Update copyright years. 2022-01-03 10:42:10 +01:00
charconv.h Update copyright years. 2022-01-03 10:42:10 +01:00
chrono.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
codecvt.h Update copyright years. 2022-01-03 10:42:10 +01:00
concept_check.h Update copyright years. 2022-01-03 10:42:10 +01:00
cow_string.h libstdc++: Limit new basic_string(nullptr_t) constructor to C++23 [PR104099] 2022-01-18 20:41:46 +00:00
cpp_type_traits.h Update copyright years. 2022-01-03 10:42:10 +01:00
deque.tcc libstdc++: Prevent -Wstringop-overread warning in std::deque [PR100516] 2022-01-27 23:31:03 +00:00
enable_special_members.h Update copyright years. 2022-01-03 10:42:10 +01:00
erase_if.h Update copyright years. 2022-01-03 10:42:10 +01:00
forward_list.h Update copyright years. 2022-01-03 10:42:10 +01:00
forward_list.tcc libstdc++: Add self-merge check to std::forward_list::merge [PR103853] 2022-01-06 14:56:48 +00:00
fs_dir.h libstdc++: Fix filesystem::remove_all races [PR104161] 2022-02-04 19:51:26 +00:00
fs_fwd.h libstdc++: Fix filesystem::remove_all races [PR104161] 2022-02-04 19:51:26 +00:00
fs_ops.h Update copyright years. 2022-01-03 10:42:10 +01:00
fs_path.h Update copyright years. 2022-01-03 10:42:10 +01:00
fstream.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
functexcept.h Update copyright years. 2022-01-03 10:42:10 +01:00
functional_hash.h Update copyright years. 2022-01-03 10:42:10 +01:00
gslice_array.h Update copyright years. 2022-01-03 10:42:10 +01:00
gslice.h Update copyright years. 2022-01-03 10:42:10 +01:00
hashtable_policy.h libstdc++: Restore support for unordered_map<const T, ...> [PR104174] 2022-01-23 22:47:00 +00:00
hashtable.h libstdc++: Optimize operations on small size hashtable [PR 68303] 2022-01-05 21:46:52 +01:00
indirect_array.h Update copyright years. 2022-01-03 10:42:10 +01:00
invoke.h Update copyright years. 2022-01-03 10:42:10 +01:00
ios_base.h Update copyright years. 2022-01-03 10:42:10 +01:00
istream.tcc libstdc++: Avoid some more warnings [PR104019] 2022-01-25 21:05:16 +00:00
iterator_concepts.h Update copyright years. 2022-01-03 10:42:10 +01:00
list.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
locale_classes.h Update copyright years. 2022-01-03 10:42:10 +01:00
locale_classes.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
locale_conv.h Update copyright years. 2022-01-03 10:42:10 +01:00
locale_facets_nonio.h libstdc++: Add %j, %U, %w, %W time_get support, fix %y, %Y, %C, %p [PR77760] 2022-01-10 15:38:47 +01:00
locale_facets_nonio.tcc libstdc++: Fix stream extraction of IEEE128 long double [PR100912] 2022-02-14 17:19:08 +00:00
locale_facets.h Update copyright years. 2022-01-03 10:42:10 +01:00
locale_facets.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
localefwd.h Update copyright years. 2022-01-03 10:42:10 +01:00
mask_array.h Update copyright years. 2022-01-03 10:42:10 +01:00
max_size_type.h Update copyright years. 2022-01-03 10:42:10 +01:00
memoryfwd.h Update copyright years. 2022-01-03 10:42:10 +01:00
mofunc_impl.h libstdc++: Add Doxygen comments to contents of <functional> 2021-10-21 22:24:53 +01:00
move_only_function.h libstdc++: Implement std::move_only_function for C++23 (P0288R9) 2021-10-06 20:12:01 +01:00
move.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
new_allocator.h Update copyright years. 2022-01-03 10:42:10 +01:00
node_handle.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
ostream_insert.h Update copyright years. 2022-01-03 10:42:10 +01:00
ostream.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
parse_numbers.h Update copyright years. 2022-01-03 10:42:10 +01:00
postypes.h Update copyright years. 2022-01-03 10:42:10 +01:00
predefined_ops.h Update copyright years. 2022-01-03 10:42:10 +01:00
ptr_traits.h Update copyright years. 2022-01-03 10:42:10 +01:00
quoted_string.h Update copyright years. 2022-01-03 10:42:10 +01:00
random.h Update copyright years. 2022-01-03 10:42:10 +01:00
random.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
range_access.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
ranges_algo.h Update copyright years. 2022-01-03 10:42:10 +01:00
ranges_algobase.h Update copyright years. 2022-01-03 10:42:10 +01:00
ranges_base.h libstdc++: Avoid overflow in ranges::advance(i, n, bound) 2022-01-27 22:24:29 +00:00
ranges_cmp.h Update copyright years. 2022-01-03 10:42:10 +01:00
ranges_uninitialized.h Update copyright years. 2022-01-03 10:42:10 +01:00
ranges_util.h Update copyright years. 2022-01-03 10:42:10 +01:00
refwrap.h libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
regex_automaton.h Update copyright years. 2022-01-03 10:42:10 +01:00
regex_automaton.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
regex_compiler.h libstdc++: Reduce template instantiations in <regex> 2022-01-05 13:47:01 +00:00
regex_compiler.tcc libstdc++: Improve std::regex_error::what() strings 2022-01-05 13:47:00 +00:00
regex_constants.h Update copyright years. 2022-01-03 10:42:10 +01:00
regex_error.h libstdc++: Improve std::regex_error::what() strings 2022-01-05 13:47:00 +00:00
regex_executor.h Update copyright years. 2022-01-03 10:42:10 +01:00
regex_executor.tcc libstdc++: Reduce template instantiations in <regex> 2022-01-05 13:47:01 +00:00
regex_scanner.h Update copyright years. 2022-01-03 10:42:10 +01:00
regex_scanner.tcc libstdc++: Improve std::regex_error::what() strings 2022-01-05 13:47:00 +00:00
regex.h libstdc++: Adjust friend declarations to work with Clang 2022-01-06 14:56:48 +00:00
regex.tcc libstdc++: Reduce template instantiations in <regex> 2022-01-05 13:47:01 +00:00
semaphore_base.h Update copyright years. 2022-01-03 10:42:10 +01:00
shared_ptr_atomic.h libstdc++: Fix constexpr constructor for atomic<shared_ptr<T>> 2022-01-21 13:21:27 +00:00
shared_ptr_base.h libstdc++: Avoid some more warnings [PR104019] 2022-01-25 21:05:16 +00:00
shared_ptr.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
slice_array.h Update copyright years. 2022-01-03 10:42:10 +01:00
specfun.h Update copyright years. 2022-01-03 10:42:10 +01:00
sstream.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
std_abs.h Update copyright years. 2022-01-03 10:42:10 +01:00
std_function.h Update copyright years. 2022-01-03 10:42:10 +01:00
std_mutex.h Update copyright years. 2022-01-03 10:42:10 +01:00
std_thread.h Update copyright years. 2022-01-03 10:42:10 +01:00
stl_algo.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
stl_algobase.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
stl_bvector.h libstdc++: Deprecate non-standard std::vector<bool>::insert(pos) [PR104559] 2022-02-17 23:44:25 +00:00
stl_construct.h libstdc++: Ignore cv-quals when std::allocator<void> constructs 2022-01-14 10:14:25 +00:00
stl_deque.h libstdc++: Avoid -Wzero-as-null-pointer-constant warning [PR103848] 2022-01-05 13:47:02 +00:00
stl_function.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
stl_heap.h Update copyright years. 2022-01-03 10:42:10 +01:00
stl_iterator_base_funcs.h Update copyright years. 2022-01-03 10:42:10 +01:00
stl_iterator_base_types.h libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
stl_iterator.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
stl_list.h Update copyright years. 2022-01-03 10:42:10 +01:00
stl_map.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
stl_multimap.h libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
stl_multiset.h Update copyright years. 2022-01-03 10:42:10 +01:00
stl_numeric.h Update copyright years. 2022-01-03 10:42:10 +01:00
stl_pair.h libstdc++: Remove unused std::pair helper function 2022-01-19 00:58:25 +00:00
stl_queue.h Update copyright years. 2022-01-03 10:42:10 +01:00
stl_raw_storage_iter.h libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
stl_relops.h Update copyright years. 2022-01-03 10:42:10 +01:00
stl_set.h Update copyright years. 2022-01-03 10:42:10 +01:00
stl_stack.h Update copyright years. 2022-01-03 10:42:10 +01:00
stl_tempbuf.h libstdc++: Fix deprecated attribute for std::get_temporary_buffer 2022-01-19 00:58:25 +00:00
stl_tree.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
stl_uninitialized.h Update copyright years. 2022-01-03 10:42:10 +01:00
stl_vector.h Update copyright years. 2022-01-03 10:42:10 +01:00
stream_iterator.h libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
streambuf_iterator.h libstdc++: Add attribute to features deprecated in C++17 [PR91260] 2022-01-14 11:27:50 +00:00
streambuf.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
string_view.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
stringfwd.h Update copyright years. 2022-01-03 10:42:10 +01:00
this_thread_sleep.h Update copyright years. 2022-01-03 10:42:10 +01:00
uniform_int_dist.h Update copyright years. 2022-01-03 10:42:10 +01:00
unique_lock.h Update copyright years. 2022-01-03 10:42:10 +01:00
unique_ptr.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
unordered_map.h libstdc++: Ensure all feature test macros have type long [PR87193] 2022-01-21 16:07:34 +00:00
unordered_set.h Update copyright years. 2022-01-03 10:42:10 +01:00
uses_allocator_args.h libstdc++: Add missing constexpr to uses-allocator construction utilities [PR104542] 2022-02-15 12:49:34 +00:00
uses_allocator.h Update copyright years. 2022-01-03 10:42:10 +01:00
utility.h Update copyright years. 2022-01-03 10:42:10 +01:00
valarray_after.h Update copyright years. 2022-01-03 10:42:10 +01:00
valarray_array.h Update copyright years. 2022-01-03 10:42:10 +01:00
valarray_array.tcc Update copyright years. 2022-01-03 10:42:10 +01:00
valarray_before.h Update copyright years. 2022-01-03 10:42:10 +01:00
vector.tcc Update copyright years. 2022-01-03 10:42:10 +01:00