mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 22:14:26 +02:00
Use internal typedef when passing allocator as argument.
This commit is contained in:
@@ -123,7 +123,7 @@ bool default_init_test()//Test for default initialization
|
||||
{
|
||||
test::default_init_allocator<int>::reset_pattern(0);
|
||||
test::default_init_allocator<int>::set_ascending(true);
|
||||
IntDefaultInitAllocVector v(Capacity, default_init, test::default_init_allocator<int>());
|
||||
IntDefaultInitAllocVector v(Capacity, default_init, typename IntDefaultInitAllocVector::allocator_type());
|
||||
typename IntDefaultInitAllocVector::iterator it = v.begin();
|
||||
//Compare with the pattern
|
||||
for(std::size_t i = 0; i != Capacity; ++i, ++it){
|
||||
|
Reference in New Issue
Block a user