flat_buffer is an AllocatorAwareContainer

fix #453
This commit is contained in:
Vinnie Falco
2017-06-09 19:56:00 -07:00
parent 9d5d4d56a4
commit 4c6735afe4
4 changed files with 437 additions and 209 deletions
+3 -3
View File
@@ -87,7 +87,7 @@ public:
basic_flat_buffer<allocator> b1{10};
}
{
basic_flat_buffer<allocator> b1{allocator{}, 10};
basic_flat_buffer<allocator> b1{10, allocator{}};
}
}
@@ -193,11 +193,11 @@ public:
basic_flat_buffer<alloc_type>;
alloc_type alloc;
{
type fba{alloc, 1};
type fba{1, alloc};
BEAST_EXPECT(fba.max_size() == 1);
}
{
type fba{alloc, 1024};
type fba{1024, alloc};
BEAST_EXPECT(fba.max_size() == 1024);
}
{