[libc++] Fix PR22922 - Allocator support for std::function does not know how to rebind.
authorEric Fiselier <eric@efcs.ca>
Wed, 18 Mar 2015 22:56:50 +0000 (22:56 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 18 Mar 2015 22:56:50 +0000 (22:56 +0000)
commit6d370568c3239568f9ba375f521ea84315abace7
tree373f4b4c1911f7d6587e75f354ee729e13c0a685
parentcf1d7df2e30f3b2469308ca37b65e73e4be352e7
[libc++] Fix PR22922 - Allocator support for std::function does not know how to rebind.

Summary:
This patch changes std::function to use allocator_traits to rebind the allocator instead of allocator itself.

It also changes most of the tests to use `bare_allocator` where possible instead of `test_allocator`.

Reviewers: mclow.lists

Reviewed By: mclow.lists

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D8391

llvm-svn: 232686
libcxx/include/functional
libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc.pass.cpp
libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_F.pass.cpp
libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_function.pass.cpp
libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_nullptr.pass.cpp
libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_rfunction.pass.cpp