Remove constexpr support for std::apply because it introduces regressions.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@235274 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2015-04-19 15:32:52 +00:00
parent e9d030687d
commit c254b36c29
5 changed files with 19 additions and 11 deletions

View File

@@ -9,6 +9,11 @@
// UNSUPPORTED: c++98, c++03, c++11
// TODO(ericwf)
// constexpr support temporarily reverted due to bug:
// https://llvm.org/bugs/show_bug.cgi?id=23141
// XFAIL: *
// <experimental/tuple>
// template <class F, class T> constexpr decltype(auto) apply(F &&, T &&)

View File

@@ -32,6 +32,8 @@ namespace ex = std::experimental;
int main()
{
// TODO(ericwf): Re-enable constexpr support
/*
{
constexpr func_obj f;
constexpr std::tuple<> tp;
@@ -39,6 +41,7 @@ int main()
static_assert(1 == ex::apply(static_cast<func_obj const &>(f), tp), "");
static_assert(2 == ex::apply(static_cast<func_obj const &&>(f), tp), "");
}
*/
{
func_obj f;
std::tuple<> tp;