Correct for new rules regarding implicitly deleted special members. http://llvm.org/bugs/show_bug.cgi?id=10191
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@134248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -107,7 +107,7 @@ int main()
|
||||
assert(new_called == 1);
|
||||
assert(f.target<A>());
|
||||
assert(f.target<int(*)(int)>() == 0);
|
||||
std::function<int(int)> f2 = _STD::move(f);
|
||||
std::function<int(int)> f2 = std::move(f);
|
||||
assert(A::count == 1);
|
||||
assert(new_called == 1);
|
||||
assert(f2.target<A>());
|
||||
|
@@ -111,7 +111,7 @@ int main()
|
||||
assert(f.target<A>());
|
||||
assert(f.target<int(*)(int)>() == 0);
|
||||
std::function<int(int)> f2;
|
||||
f2 = _STD::move(f);
|
||||
f2 = std::move(f);
|
||||
assert(A::count == 1);
|
||||
assert(new_called == 1);
|
||||
assert(f2.target<A>());
|
||||
|
Reference in New Issue
Block a user