Add some missing const qualifiers

This commit is contained in:
Gennaro Prota
2025-09-26 17:24:59 +02:00
parent 796fcb615b
commit 957ee38823
3 changed files with 6 additions and 6 deletions

View File

@@ -98,7 +98,7 @@ vector_max_size_workaround( const T & v ) noexcept
const allocator_type & alloc = v.get_allocator();
typename std::allocator_traits< allocator_type >::size_type alloc_max =
const typename std::allocator_traits< allocator_type >::size_type alloc_max =
std::allocator_traits< allocator_type >::max_size( alloc );
const typename T::size_type container_max = v.max_size();

View File

@@ -21,7 +21,7 @@ run_test_cases()
typedef bitset_test< bitset_type > Tests;
const int bits_per_block = bitset_type::bits_per_block;
std::string long_string = get_long_string();
const std::string long_string = get_long_string();
//=====================================================================
// Test operator&=

View File

@@ -24,8 +24,8 @@ run_test_cases()
typedef bitset_test< bitset_type > Tests;
// typedef typename bitset_type::size_type size_type; // unusable with Borland 5.5.1
std::string long_string = get_long_string();
std::size_t ul_width = std::numeric_limits< unsigned long >::digits;
const std::string long_string = get_long_string();
const std::size_t ul_width = std::numeric_limits< unsigned long >::digits;
//=====================================================================
// Test b.empty()