mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Add some missing const qualifiers
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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&=
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user