gcc/libstdc++-v3/doc/xml/manual
Jonathan Wakely fe9571a35d libstdc++: Fix non-reserved name in std::allocator base class [PR64135]
The possible base classes of std::allocator are new_allocator and
malloc_allocator, which both cause a non-reserved name to be declared in
every program that includes the definition of std::allocator. This is
non-conforming.

This change replaces __gnu_cxx::new_allocator with std::__new_allocator
which is identical except for using a reserved name. The non-standard
extension __gnu_cxx::new_allocator is preserved as a thin wrapper over
std::__new_allocator. There is no problem with the extension using a
non-reserved name now that it's not included by default in other
headers.

The same change could be done to __gnu_cxx::malloc_allocator but as it's
not the default configuration it can wait.

libstdc++-v3/ChangeLog:

	PR libstdc++/64135
	* config/allocator/new_allocator_base.h: Include
	<bits/new_allocator.h> instead of <ext/new_allocator.h>.
	(__allocator_base): Use std::__new_allocator instead of
	__gnu_cxx::new_allocator.
	* doc/xml/manual/allocator.xml: Document new default base class
	for std::allocator.
	* doc/xml/manual/evolution.xml: Likewise.
	* doc/html/*: Regenerate.
	* include/Makefile.am: Add bits/new_allocator.h.
	* include/Makefile.in: Regenerate.
	* include/experimental/memory_resource (new_delete_resource):
	Use std::__new_allocator instead of __gnu_cxx::new_allocator.
	* include/ext/new_allocator.h (new_allocator): Derive from
	std::__new_allocator. Move implementation to ...
	* include/bits/new_allocator.h: New file.
	* testsuite/20_util/allocator/64135.cc: New test.
2021-12-09 22:50:10 +00:00
..
abi.xml
algorithms.xml
allocator.xml libstdc++: Fix non-reserved name in std::allocator base class [PR64135] 2021-12-09 22:50:10 +00:00
appendix_contributing.xml
appendix_free.xml
appendix_porting.xml
atomics.xml
auto_ptr.xml
backwards_compatibility.xml
bitmap_allocator.xml
build_hacking.xml
codecvt.xml
concurrency_extensions.xml
concurrency.xml
configure.xml libstdc++: Remove broken std::allocator base classes [PR103340] 2021-12-02 16:46:28 +00:00
containers.xml
ctype.xml
debug_mode.xml libstdc++: Use gender-agnostic pronoun in docs 2021-11-30 13:08:50 +00:00
debug.xml
diagnostics.xml
documentation_hacking.xml
evolution.xml libstdc++: Fix non-reserved name in std::allocator base class [PR64135] 2021-12-09 22:50:10 +00:00
extensions.xml
internals.xml
intro.xml
io.xml
iterators.xml
locale.xml
localization.xml
messages.xml
mt_allocator.xml libstdc++: Remove broken std::allocator base classes [PR103340] 2021-12-02 16:46:28 +00:00
numerics.xml
parallel_mode.xml
policy_data_structures_biblio.xml
policy_data_structures.xml
prerequisites.xml
shared_ptr.xml
spine.xml
status_cxx1998.xml
status_cxx2011.xml
status_cxx2014.xml
status_cxx2017.xml
status_cxx2020.xml
status_cxxis29124.xml
status_cxxtr1.xml
status_cxxtr24733.xml
strings.xml
support.xml
test_policy_data_structures.xml
test.xml
using_exceptions.xml
using.xml
utilities.xml