r235868 - in /trunk/libstdc++-v3: ChangeLog inc...
redi@gcc.gnu.org
redi@gcc.gnu.org
Wed May 4 12:08:00 GMT 2016
Author: redi
Date: Wed May 4 12:08:45 2016
New Revision: 235868
URL: https://gcc.gnu.org/viewcvs?rev=235868&root=gcc&view=rev
Log:
libstdc++/70940 Start fixing polymorphic memory resources
PR libstdc++/70940
* include/experimental/memory_resource
(__resource_adaptor_imp::do_allocate): Do not default-construct
rebound allocator.
(__resource_adaptor_imp::do_deallocate): Likewise. Use
allocator_traits to get pointer type.
(__null_memory_resource::do_allocate): Remove unused parameters.
(__null_memory_resource::do_deallocate): Likewise.
(__null_memory_resource::do_is_equal): Likewise. Add return statement.
* testsuite/experimental/type_erased_allocator/1.cc: Combine with ...
* testsuite/experimental/type_erased_allocator/1_neg.cc: This, and
move to ...
* testsuite/experimental/memory_resource/1.cc: Here.
* testsuite/experimental/memory_resource/null_memory_resource.cc: New.
* testsuite/experimental/memory_resource/resource_adaptor.cc: New.
Added:
trunk/libstdc++-v3/testsuite/experimental/memory_resource/
trunk/libstdc++-v3/testsuite/experimental/memory_resource/1.cc
- copied, changed from r235859, trunk/libstdc++-v3/testsuite/experimental/type_erased_allocator/1.cc
trunk/libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc
- copied, changed from r235859, trunk/libstdc++-v3/testsuite/experimental/type_erased_allocator/1_neg.cc
trunk/libstdc++-v3/testsuite/experimental/memory_resource/resource_adaptor.cc
Removed:
trunk/libstdc++-v3/testsuite/experimental/type_erased_allocator/1.cc
trunk/libstdc++-v3/testsuite/experimental/type_erased_allocator/1_neg.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/experimental/memory_resource
More information about the Gcc-cvs
mailing list