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:
@@ -94,11 +94,11 @@ template< typename T >
|
|||||||
BOOST_DYNAMIC_BITSET_CONSTEXPR20 typename T::size_type
|
BOOST_DYNAMIC_BITSET_CONSTEXPR20 typename T::size_type
|
||||||
vector_max_size_workaround( const T & v ) noexcept
|
vector_max_size_workaround( const T & v ) noexcept
|
||||||
{
|
{
|
||||||
typedef typename T::allocator_type allocator_type;
|
typedef typename T::allocator_type allocator_type;
|
||||||
|
|
||||||
const allocator_type & alloc = v.get_allocator();
|
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 );
|
std::allocator_traits< allocator_type >::max_size( alloc );
|
||||||
|
|
||||||
const typename T::size_type container_max = v.max_size();
|
const typename T::size_type container_max = v.max_size();
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ run_test_cases()
|
|||||||
typedef bitset_test< bitset_type > Tests;
|
typedef bitset_test< bitset_type > Tests;
|
||||||
const int bits_per_block = bitset_type::bits_per_block;
|
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&=
|
// Test operator&=
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ run_test_cases()
|
|||||||
typedef bitset_test< bitset_type > Tests;
|
typedef bitset_test< bitset_type > Tests;
|
||||||
// typedef typename bitset_type::size_type size_type; // unusable with Borland 5.5.1
|
// typedef typename bitset_type::size_type size_type; // unusable with Borland 5.5.1
|
||||||
|
|
||||||
std::string long_string = get_long_string();
|
const std::string long_string = get_long_string();
|
||||||
std::size_t ul_width = std::numeric_limits< unsigned long >::digits;
|
const std::size_t ul_width = std::numeric_limits< unsigned long >::digits;
|
||||||
|
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
// Test b.empty()
|
// Test b.empty()
|
||||||
|
|||||||
Reference in New Issue
Block a user