PR libstdc++/87538 fix std::not_fn exception specifications
commit68b1449efbfc0da6e7df31cd62a2a48c1e688ec1
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2018 12:07:22 +0000 (8 12:07 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2018 12:07:22 +0000 (8 12:07 +0000)
tree93cf8f92e0170a353955234719837eef43a25dbc
parent8c41ff3aab367369172da25270bbedfb8fb6ee2b
PR libstdc++/87538 fix std::not_fn exception specifications

PR libstdc++/87538
* include/std/functional (_Not_fn::operator()): Check value of
__is_nothrow_invocable as well.
* testsuite/20_util/function_objects/not_fn/87538.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264921 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/functional
libstdc++-v3/testsuite/20_util/function_objects/not_fn/87538.cc [new file with mode: 0644]