* include/Makefile.am: Add new header.
commitac4cf92ef6d50b09fde2fc83dc60a3f2d5fa9968
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jun 2014 20:54:46 +0000 (25 20:54 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jun 2014 20:54:46 +0000 (25 20:54 +0000)
tree9814c386214bbf28f714ae8aea45ac46a3ee273c
parentf933d589beb2babe9b7e79a9bd1d166572422909
* include/Makefile.am: Add new header.
* include/Makefile.in: Regenerate.
* include/bits/allocated_ptr.h (__allocated_ptr, __allocate_guarded):
New RAII utilities for working with allocators.
* include/bits/shared_ptr_base.h (_Sp_counted_deleter): Define
__allocator_type typedef and use new __allocated_ptr type.
(_Sp_counted_ptr_inplace): Likewise.
(__shared_count::__shared_count, __shared_ptr::__shared_ptr): Use
__allocate_guarded to to simplify exception handling.
* include/experimental/any (any::_Manager_alloc::_S_alloc): Likewise.
* include/std/future (_Result_alloc::_M_destroy): Likewise.
(_Result_alloc::_S_allocate_result): Likewise.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust line number.
* testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
* testsuite/20_util/shared_ptr/creation/no_rtti.cc: New.
* testsuite/20_util/shared_ptr/creation/alloc.cc: Test allocator
with fancy pointer.
* testsuite/30_threads/promise/cons/alloc.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211996 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in
libstdc++-v3/include/bits/allocated_ptr.h [new file with mode: 0644]
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/include/experimental/any
libstdc++-v3/include/std/future
libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820_neg.cc
libstdc++-v3/testsuite/20_util/shared_ptr/cons/void_neg.cc
libstdc++-v3/testsuite/20_util/shared_ptr/creation/alloc.cc
libstdc++-v3/testsuite/20_util/shared_ptr/creation/no_rtti.cc [copied from libstdc++-v3/testsuite/20_util/shared_ptr/cons/43820_neg.cc with 57% similarity]
libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc