Fix use of C++11 extensions in C++03 code.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@228698 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -82,9 +82,11 @@ int main()
|
||||
assert(f);
|
||||
assert(f.target<int (A::*)(int) const>() != 0);
|
||||
}
|
||||
#if __cplusplus >= 201103L
|
||||
{
|
||||
Foo f;
|
||||
std::function<void(int)> fun = std::bind(&Foo::bar, &f, std::placeholders::_1);
|
||||
fun(10);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@@ -79,7 +79,7 @@ int main()
|
||||
assert(globalMemCounter.checkOutstandingNewEq(0));
|
||||
{
|
||||
assert(globalMemCounter.checkOutstandingNewEq(0));
|
||||
non_default_test_allocator<std::function<int(int)>> al(1);
|
||||
non_default_test_allocator<std::function<int(int)> > al(1);
|
||||
std::function<int(int)> f2(std::allocator_arg, al, g);
|
||||
assert(globalMemCounter.checkOutstandingNewEq(0));
|
||||
assert(f2.target<int(*)(int)>());
|
||||
|
Reference in New Issue
Block a user