diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-05-12 14:18:53 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-05-13 20:40:04 +0100 |
commit | c829b04bc3e1dcd4b06fa3bc2e62dd2d1eb0b036 (patch) | |
tree | 8725c00e5962e393828ad784cba95a07874ad977 /gcc/diagnostic-format-json.cc | |
parent | c470f3ea86a28caacb9e9124307c4a03b2396288 (diff) | |
download | gcc-c829b04bc3e1dcd4b06fa3bc2e62dd2d1eb0b036.zip gcc-c829b04bc3e1dcd4b06fa3bc2e62dd2d1eb0b036.tar.gz gcc-c829b04bc3e1dcd4b06fa3bc2e62dd2d1eb0b036.tar.bz2 |
libstdc++: Allow std::swap to find overload for std::exception_ptr
The non-member swap for std::exception_ptr is in a nested namespace and
so can only be found by ADL currently. Add a using-declaration so that
qualified std::swap calls will use the std::exception_ptr::swap member,
instead of the generic std::swap.
There's no new test for this, because the generic std::swap works, it
just does more work than is necessary.
Also tell Doxygen to replace the __exception_ptr namespace with
"__unspecified__" in the generate docs, so the real name is not
documented.
libstdc++-v3/ChangeLog:
* doc/doxygen/user.cfg.in (PREDEFINED): Replace __exception_ptr
with "__unspecified__".
* libsupc++/exception_ptr.h: Improve doxygen docs.
(__exception_ptr::swap): Also declare in namespace std.
Diffstat (limited to 'gcc/diagnostic-format-json.cc')
0 files changed, 0 insertions, 0 deletions