Revert "Update aosp/master libcxx rebase to r263688"
The world is burning. This reverts commitc004fd909c, reversing changes made to1418e4163d.
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is dual licensed under the MIT and the University of Illinois Open
|
||||
// Source Licenses. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: c++98, c++03
|
||||
|
||||
// <functional>
|
||||
|
||||
// template<CopyConstructible Fn, CopyConstructible... Types>
|
||||
// unspecified bind(Fn, Types...);
|
||||
// template<Returnable R, CopyConstructible Fn, CopyConstructible... Types>
|
||||
// unspecified bind(Fn, Types...);
|
||||
|
||||
// https://llvm.org/bugs/show_bug.cgi?id=23141
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
|
||||
struct Fun
|
||||
{
|
||||
template<typename T, typename U>
|
||||
void operator()(T &&, U &&) const
|
||||
{
|
||||
static_assert(std::is_same<U, int &>::value, "");
|
||||
}
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
std::bind(Fun{}, std::placeholders::_1, 42)("hello");
|
||||
}
|
||||
@@ -23,7 +23,7 @@
|
||||
struct DummyUnaryFunction
|
||||
{
|
||||
template <typename S>
|
||||
int operator()(S const &) const { return 0; }
|
||||
int operator()(S const & s) const { return 0; }
|
||||
};
|
||||
|
||||
struct BadUnaryFunction
|
||||
@@ -39,7 +39,7 @@ struct BadUnaryFunction
|
||||
}
|
||||
};
|
||||
|
||||
int main()
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
// Check that BadUnaryFunction::operator()(S const &) is not
|
||||
// instantiated when checking if BadUnaryFunction is a nested bind
|
||||
|
||||
Reference in New Issue
Block a user