Add remaining changes from P1065R2 "constexpr INVOKE"
authorJonathan Wakely <jwakely@redhat.com>
Thu, 31 Oct 2019 23:03:22 +0000 (23:03 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 31 Oct 2019 23:03:22 +0000 (23:03 +0000)
commit2670a7aa8f2680af6c113a6dec97f21d5715c809
tree82f613b28f2cfdd2766fd23c15c8f31f99368c5a
parent328b52d6751733f6e0f2d31feca44e1d8f2abfc6
Add remaining changes from P1065R2 "constexpr INVOKE"

* include/bits/refwrap.h (reference_wrapper, ref, cref): Add constexpr
specifiers for C++20.
* include/std/functional (_Mem_fn, mem_fn, _Bind, _Bind_result, bind)
(bind_front, _Not_fn, not_fn): Likewise.
* testsuite/20_util/bind/constexpr.cc: New test.
* testsuite/20_util/function_objects/bind_front/constexpr.cc: New test.
* testsuite/20_util/function_objects/mem_fn/constexpr.cc: New test.
* testsuite/20_util/function_objects/not_fn/constexpr.cc: New test.
* testsuite/20_util/reference_wrapper/constexpr.cc: New test.

From-SVN: r277698
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/refwrap.h
libstdc++-v3/include/std/functional
libstdc++-v3/testsuite/20_util/bind/constexpr.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/function_objects/bind_front/constexpr.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/function_objects/mem_fn/constexpr.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/function_objects/not_fn/constexpr.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/reference_wrapper/constexpr.cc [new file with mode: 0644]