* include/std/thread: Add deleted thread(thread&).
From-SVN: r162954
This commit is contained in:
parent
309714d438
commit
b2edc92147
|
@ -1,3 +1,8 @@
|
|||
2010-08-06 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* include/std/thread: Add deleted thread(thread&).
|
||||
* testsuite/30_threads/thread/cons/copy_neg.cc: Remove XFAIL.
|
||||
|
||||
2010-08-06 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/std/tuple (pack_arguments): Rename to forward_as_tuple
|
||||
|
|
|
@ -123,6 +123,7 @@ namespace std
|
|||
|
||||
public:
|
||||
thread() = default;
|
||||
thread(thread&) = delete;
|
||||
thread(const thread&) = delete;
|
||||
|
||||
thread(thread&& __t)
|
||||
|
|
|
@ -27,13 +27,7 @@ void test01()
|
|||
// copy
|
||||
typedef std::thread test_type;
|
||||
test_type t1;
|
||||
test_type t2(t1); // { dg-error "deleted" "" { xfail *-*-* } }
|
||||
test_type t2(t1); // { dg-error "deleted" }
|
||||
}
|
||||
|
||||
// This is failing for the wrong reason; it should fail because we're
|
||||
// trying to call the deleted copy constructor, but instead it fails
|
||||
// because we try to call the thread(_Callable&&,_Args&&...) constructor
|
||||
// and fail because thread isn't callable. But that's OK for now.
|
||||
// { dg-error "" "" { target *-*-* } 30 }
|
||||
|
||||
// { dg-prune-output "include" }
|
||||
|
|
Loading…
Reference in New Issue