@@ -33,13 +33,13 @@ concept JoinWithViewHasConstEnd = requires(const std::ranges::join_with_view<V,
33
33
template <size_t Bits>
34
34
requires (Bits < (1 << 7 ))
35
35
constexpr void test_end() {
36
- constexpr bool v_models_forward_range = Bits & (1 << 0 );
37
- constexpr bool inner_range_is_reference = Bits & (1 << 1 );
38
- constexpr bool inner_range_models_forward_range = Bits & (1 << 2 );
39
- constexpr bool v_models_common_range = Bits & (1 << 3 );
40
- constexpr bool inner_range_models_common_range = Bits & (1 << 4 );
41
- constexpr bool v_models_simple_range = Bits & (1 << 5 );
42
- constexpr bool pattern_models_simple_range = Bits & (1 << 6 );
36
+ constexpr bool v_models_forward_range = static_cast < bool >( Bits & (1 << 0 ) );
37
+ constexpr bool inner_range_is_reference = static_cast < bool >( Bits & (1 << 1 ) );
38
+ constexpr bool inner_range_models_forward_range = static_cast < bool >( Bits & (1 << 2 ) );
39
+ constexpr bool v_models_common_range = static_cast < bool >( Bits & (1 << 3 ) );
40
+ constexpr bool inner_range_models_common_range = static_cast < bool >( Bits & (1 << 4 ) );
41
+ constexpr bool v_models_simple_range = static_cast < bool >( Bits & (1 << 5 ) );
42
+ constexpr bool pattern_models_simple_range = static_cast < bool >( Bits & (1 << 6 ) );
43
43
44
44
constexpr ViewProperties inner_range_props{.common = inner_range_models_common_range};
45
45
using InnerRange =
@@ -108,13 +108,13 @@ constexpr void test_end() {
108
108
template <std::size_t Bits>
109
109
requires (Bits < (1 << 7 ))
110
110
constexpr void test_const_end() {
111
- constexpr bool const_v_models_forward_range = Bits & (1 << 0 );
112
- constexpr bool const_pattern_models_forward_range = Bits & (1 << 1 );
113
- constexpr bool inner_const_range_is_reference = Bits & (1 << 2 );
114
- constexpr bool inner_const_range_models_input_range = Bits & (1 << 3 );
115
- constexpr bool inner_const_range_models_forward_range = Bits & (1 << 4 );
116
- constexpr bool const_v_models_common_range = Bits & (1 << 5 );
117
- constexpr bool inner_const_range_models_common_range = Bits & (1 << 6 );
111
+ constexpr bool const_v_models_forward_range = static_cast < bool >( Bits & (1 << 0 ) );
112
+ constexpr bool const_pattern_models_forward_range = static_cast < bool >( Bits & (1 << 1 ) );
113
+ constexpr bool inner_const_range_is_reference = static_cast < bool >( Bits & (1 << 2 ) );
114
+ constexpr bool inner_const_range_models_input_range = static_cast < bool >( Bits & (1 << 3 ) );
115
+ constexpr bool inner_const_range_models_forward_range = static_cast < bool >( Bits & (1 << 4 ) );
116
+ constexpr bool const_v_models_common_range = static_cast < bool >( Bits & (1 << 5 ) );
117
+ constexpr bool inner_const_range_models_common_range = static_cast < bool >( Bits & (1 << 6 ) );
118
118
119
119
constexpr ViewProperties inner_range_props{.common = inner_const_range_models_common_range};
120
120
using InnerRange =
0 commit comments