diff options
Diffstat (limited to 'src/common/range_map.h')
| -rw-r--r-- | src/common/range_map.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/range_map.h b/src/common/range_map.h index 993e21643..051e713a7 100644 --- a/src/common/range_map.h +++ b/src/common/range_map.h | |||
| @@ -13,8 +13,8 @@ namespace Common { | |||
| 13 | template <typename KeyTBase, typename ValueT> | 13 | template <typename KeyTBase, typename ValueT> |
| 14 | class RangeMap { | 14 | class RangeMap { |
| 15 | private: | 15 | private: |
| 16 | using KeyT = std::conditional_t<std::is_signed_v<KeyTBase>, typename KeyTBase, | 16 | using KeyT = |
| 17 | std::make_signed_t<KeyTBase>>; | 17 | std::conditional_t<std::is_signed_v<KeyTBase>, KeyTBase, std::make_signed_t<KeyTBase>>; |
| 18 | 18 | ||
| 19 | public: | 19 | public: |
| 20 | explicit RangeMap(ValueT null_value_) : null_value{null_value_} { | 20 | explicit RangeMap(ValueT null_value_) : null_value{null_value_} { |
| @@ -56,8 +56,8 @@ public: | |||
| 56 | 56 | ||
| 57 | private: | 57 | private: |
| 58 | using MapType = std::map<KeyT, ValueT>; | 58 | using MapType = std::map<KeyT, ValueT>; |
| 59 | using IteratorType = MapType::iterator; | 59 | using IteratorType = typename MapType::iterator; |
| 60 | using ConstIteratorType = MapType::const_iterator; | 60 | using ConstIteratorType = typename MapType::const_iterator; |
| 61 | 61 | ||
| 62 | size_t ContinousSizeInternal(KeyT address) const { | 62 | size_t ContinousSizeInternal(KeyT address) const { |
| 63 | const auto it = GetFirstElemnentBeforeOrOn(address); | 63 | const auto it = GetFirstElemnentBeforeOrOn(address); |