aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include/cpplib.h
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-08-31 13:57:34 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-08-31 14:28:03 +0100
commite47df5eb56c4e7aca0d3e50826e5aaa1887fa446 (patch)
tree25b14958fc49244ee2578c1c393b0af81836aeaf /libcpp/include/cpplib.h
parent5d27fcd993e4519fc05224f48bd2492b6cf52be1 (diff)
downloadgcc-e47df5eb56c4e7aca0d3e50826e5aaa1887fa446.zip
gcc-e47df5eb56c4e7aca0d3e50826e5aaa1887fa446.tar.gz
gcc-e47df5eb56c4e7aca0d3e50826e5aaa1887fa446.tar.bz2
libstdc++: Add noexcept-specifier to std::reference_wrapper::operator()
This isn't required by the standard, but there's an LWG issue suggesting to add it. Also use __invoke_result instead of result_of, to match the spec in recent standards. libstdc++-v3/ChangeLog: * include/bits/refwrap.h (reference_wrapper::operator()): Add noexcept-specifier and use __invoke_result instead of result_of. * testsuite/20_util/reference_wrapper/invoke-noexcept.cc: New test.
Diffstat (limited to 'libcpp/include/cpplib.h')
0 files changed, 0 insertions, 0 deletions