Fix exception-specifications for std::_Not_fn
authorJonathan Wakely <jwakely@redhat.com>
Thu, 13 Oct 2016 10:19:24 +0000 (11:19 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 13 Oct 2016 10:19:24 +0000 (11:19 +0100)
commitcc06c7f652d7fede4844eb1cc21b65d5c8e4efcc
treee4fb0f98937daac4b0a52cdba15d6ed65d72cfe8
parent27947670631d8a44fd8c2984da601154b614fa81
Fix exception-specifications for std::_Not_fn

* include/std/functional (_Not_fn): Make exception specifications
depend on whether negating the result can throw.
* testsuite/20_util/not_fn/1.cc: Move to ...
* testsuite/20_util/function_objects/not_fn/1.cc: ... here. Add tests
for types that can throw when negated and that cannot be negated.

From-SVN: r241091
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/functional
libstdc++-v3/testsuite/20_util/function_objects/not_fn/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/not_fn/1.cc [deleted file]