mirror of
https://github.com/boostorg/container.git
synced 2026-01-19 04:02:17 +00:00
Make small_size_type_allocator a template so that it can be rebinded
This commit is contained in:
@@ -240,11 +240,11 @@ unsigned int propagation_test_allocator< T
|
||||
, EqualIfEqualIds
|
||||
>::unique_id_ = 0;
|
||||
|
||||
|
||||
template<class T>
|
||||
class small_size_type_allocator
|
||||
{
|
||||
public:
|
||||
typedef int value_type;
|
||||
typedef T value_type;
|
||||
typedef value_type* pointer;
|
||||
typedef const value_type* const_pointer;
|
||||
typedef unsigned short size_type;
|
||||
|
||||
@@ -45,7 +45,7 @@ template class boost::container::vector< test::movable_and_copyable_int
|
||||
>;
|
||||
|
||||
//test custom allocator with small size_type
|
||||
template class boost::container::vector<int, test::small_size_type_allocator>;
|
||||
template class boost::container::vector<int, test::small_size_type_allocator<int> >;
|
||||
|
||||
} //namespace boost {
|
||||
} //namespace container {
|
||||
|
||||
Reference in New Issue
Block a user