flat_buffer is an AllocatorAwareContainer

fix #453
This commit is contained in:
Vinnie Falco
2017-07-20 08:12:19 -07:00
parent 44995bf071
commit 23863230de
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);
}
{