Installed allocator into std::function

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2010-08-20 19:36:46 +00:00
parent e00e030f58
commit 725528086c
9 changed files with 739 additions and 145 deletions

View File

@@ -16,7 +16,10 @@
#include <functional>
#include <cassert>
#include "../test_allocator.h"
int main()
{
#error template<class A> function(allocator_arg_t, const A&, nullptr_t); not implemented
std::function<int(int)> f(std::allocator_arg, test_allocator<int>(), nullptr);
assert(!f);
}