summaryrefslogtreecommitdiff
path: root/src/common/range_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/range_map.h')
-rw-r--r--src/common/range_map.h8
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 {
13template <typename KeyTBase, typename ValueT> 13template <typename KeyTBase, typename ValueT>
14class RangeMap { 14class RangeMap {
15private: 15private:
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
19public: 19public:
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
57private: 57private:
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);