Make small_size_type_allocator a template so that it can be rebinded

This commit is contained in:
Ion Gaztañaga
2025-09-21 11:00:08 +02:00
parent 08d1a17945
commit 1519d48135
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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 {