File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export module bounded.integer_tombstone_traits;
12
12
import bounded.arithmetic.operators;
13
13
import bounded.bounded_integer;
14
14
import bounded.comparison;
15
+ import bounded.conditional_function;
15
16
import bounded.integer;
16
17
import bounded.literal;
17
18
import bounded.tombstone_traits;
@@ -32,14 +33,14 @@ struct tombstone_traits<T> {
32
33
static constexpr auto spare_below = numeric_traits::min_value<T> - underlying_min;
33
34
static constexpr auto spare_above = underlying_max - numeric_traits::max_value<T>;
34
35
public:
35
- static constexpr auto spare_representations = BOUNDED_CONDITIONAL( std::is_empty_v<T>,
36
+ static constexpr auto spare_representations = conditional_function< std::is_empty_v<T>>(
36
37
constant<0 >,
37
38
spare_below + spare_above
38
39
);
39
40
40
41
template <bounded_integer Index> requires (Index() < spare_representations)
41
42
static constexpr auto make(Index const index) noexcept {
42
- auto const value = BOUNDED_CONDITIONAL ( index < spare_below,
43
+ auto const value = conditional_function< index < spare_below>(
43
44
index + underlying_min,
44
45
index - spare_below + numeric_traits::max_value<T> + constant<1 >
45
46
);
You can’t perform that action at this time.
0 commit comments