mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-13 13:55:15 +08:00
future: Use base class with nested types.
2009-11-02 Benjamin Kosnik <bkoz@redhat.com> * include/std/future: Use base class with nested types. (__future_base): New. (__future_base::_Result_base): From _Future_result_base. (__future_base::_Result): From _Future_result. (__future_base::_Move_result): From _Move_future_result. (__future_base::_Ptr): From _Future_ptr. (__future_base::_State): From _Future_state. (__basic_future): From _Future_impl. * testsuite/30_threads/packaged_task/cons/assign_neg.cc: Adjust line numbers. * testsuite/30_threads/packaged_task/cons/copy_neg.cc: Same. * testsuite/30_threads/shared_future/cons/assign_neg.cc: Same. * testsuite/30_threads/unique_future/cons/assign_neg.cc: Same. * testsuite/30_threads/unique_future/cons/copy_neg.cc: Same. * testsuite/30_threads/promise/cons/assign_neg.cc: Same. * testsuite/30_threads/promise/cons/copy_neg.cc: Same. From-SVN: r153834
This commit is contained in:
parent
c393f55941
commit
c36abf0326
@ -1,3 +1,22 @@
|
||||
2009-11-02 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* include/std/future: Use base class with nested types.
|
||||
(__future_base): New.
|
||||
(__future_base::_Result_base): From _Future_result_base.
|
||||
(__future_base::_Result): From _Future_result.
|
||||
(__future_base::_Move_result): From _Move_future_result.
|
||||
(__future_base::_Ptr): From _Future_ptr.
|
||||
(__future_base::_State): From _Future_state.
|
||||
(__basic_future): From _Future_impl.
|
||||
* testsuite/30_threads/packaged_task/cons/assign_neg.cc: Adjust line
|
||||
numbers.
|
||||
* testsuite/30_threads/packaged_task/cons/copy_neg.cc: Same.
|
||||
* testsuite/30_threads/shared_future/cons/assign_neg.cc: Same.
|
||||
* testsuite/30_threads/unique_future/cons/assign_neg.cc: Same.
|
||||
* testsuite/30_threads/unique_future/cons/copy_neg.cc: Same.
|
||||
* testsuite/30_threads/promise/cons/assign_neg.cc: Same.
|
||||
* testsuite/30_threads/promise/cons/copy_neg.cc: Same.
|
||||
|
||||
2009-10-31 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/std/chrono (struct __common_rep_type): New.
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -33,4 +33,4 @@ void test01()
|
||||
}
|
||||
|
||||
// { dg-error "used here" "" { target *-*-* } 32 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 864 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 912 }
|
||||
|
@ -32,4 +32,4 @@ void test01()
|
||||
}
|
||||
|
||||
// { dg-error "used here" "" { target *-*-* } 31 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 863 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 911 }
|
||||
|
@ -33,4 +33,4 @@ void test01()
|
||||
}
|
||||
|
||||
// { dg-error "used here" "" { target *-*-* } 32 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 590 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 630 }
|
||||
|
@ -32,4 +32,4 @@ void test01()
|
||||
}
|
||||
|
||||
// { dg-error "used here" "" { target *-*-* } 31 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 574 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 614 }
|
||||
|
@ -35,4 +35,4 @@ void test01()
|
||||
}
|
||||
|
||||
// { dg-error "used here" "" { target *-*-* } 34 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 483 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 514 }
|
||||
|
@ -35,4 +35,4 @@ void test01()
|
||||
}
|
||||
|
||||
// { dg-error "used here" "" { target *-*-* } 34 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 403 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 440 }
|
||||
|
@ -34,4 +34,4 @@ void test01()
|
||||
}
|
||||
|
||||
// { dg-error "used here" "" { target *-*-* } 33 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 402 }
|
||||
// { dg-error "deleted function" "" { target *-*-* } 439 }
|
||||
|
Loading…
Reference in New Issue
Block a user