Make std::invoke usable in constant expressions
authorJonathan Wakely <jwakely@redhat.com>
Wed, 23 Oct 2019 17:42:16 +0000 (18:42 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 23 Oct 2019 17:42:16 +0000 (18:42 +0100)
commit6d188e4fddff68f4c50f8178104137f71d4c621e
treeddfa9f6b24e40fba176a177fca21c6375c01d465
parent85f241149328ce8e677cbdfa7fa8592aca155066
Make std::invoke usable in constant expressions

* include/std/functional (invoke): Add constexpr for C++20.
* include/std/version (__cpp_lib_constexpr_invoke): Define.
* testsuite/20_util/function_objects/invoke/constexpr.cc: New test.

From-SVN: r277343
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/functional
libstdc++-v3/include/std/version
libstdc++-v3/testsuite/20_util/function_objects/invoke/constexpr.cc [new file with mode: 0644]