]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Restore __gnu_debug::array [PR100682]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 22 Jul 2021 10:45:32 +0000 (11:45 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 22 Jul 2021 12:53:57 +0000 (13:53 +0100)
commit254e5d19a177af23a77b67fd51d0d1a25eaabfc7
treef99151953f0e5b21d72ed5ea912092cfaa70fa1a
parentd3fa77472b78c5ddada03a1052b229bea11cb76f
libstdc++: Restore __gnu_debug::array [PR100682]

As the PR points out, we removed the debug version of std::array without
any period of deprecation. Although std::array contains all the actual
debug checks now, removing the <debug/arrray> header breaks any code
that was using that explicitly. The manual still lists doing that as
supported.

This restores the <debug/array> header, but simply defines
__gnu_debug::array as an alias for std::array, and declares the alias
with the deprecated attribute. The docs are updated to match.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

PR libstdc++/100682
* doc/xml/manual/debug_mode.xml: Update documentation about
debug capability of std::array.
* doc/html/*: Regenerate.
* include/debug/array: New file.
libstdc++-v3/doc/html/manual/debug_mode_semantics.html
libstdc++-v3/doc/html/manual/debug_mode_using.html
libstdc++-v3/doc/xml/manual/debug_mode.xml
libstdc++-v3/include/debug/array [new file with mode: 0644]