]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Replace use of reserved name that clashes [PR 97362]
authorJonathan Wakely <jwakely@redhat.com>
Sat, 10 Oct 2020 20:22:12 +0000 (21:22 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 5 Nov 2020 19:10:47 +0000 (19:10 +0000)
commite9c2c61b9157e15311dbf0a73c575ae0eae79cb3
tree97d692ac4e548a6072bced0d2f02c41257fd8514
parenta79cb813205027576d47a27655198cec4b5cd046
libstdc++: Replace use of reserved name that clashes [PR 97362]

The name __deref is defined as a macro by Windows headers.

This renames the __deref() helper function to __ref. It doesn't actually
dereference an iterator. it just has the same type as the iterator's
reference type.

libstdc++-v3/ChangeLog:

PR libstdc++/97362
* doc/html/manual/source_code_style.html: Regenerate.
* doc/xml/manual/appendix_contributing.xml: Add __deref to
BADNAMES.
* include/debug/functions.h (_Irreflexive_checker::__deref):
Rename to __ref.
* testsuite/17_intro/badnames.cc: Check __deref.

(cherry picked from commit 2137aa92412da363d52ef699987441be28b239d0)
libstdc++-v3/doc/html/manual/source_code_style.html
libstdc++-v3/doc/xml/manual/appendix_contributing.xml
libstdc++-v3/include/debug/functions.h
libstdc++-v3/testsuite/17_intro/badnames.cc
This page took 0.065021 seconds and 5 git commands to generate.