diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-12-25 01:19:41 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2023-01-01 22:43:58 +0100 |
commit | d09aa0182f18d1ac338ab47009b42fdeb67497a8 (patch) | |
tree | 1b3ae726f7aaa465b30fba795cfca0ae88d2140b /src/common | |
parent | Rasterizer: Setup skeleton for Host Conditional rendering (diff) | |
download | yuzu-d09aa0182f18d1ac338ab47009b42fdeb67497a8.tar yuzu-d09aa0182f18d1ac338ab47009b42fdeb67497a8.tar.gz yuzu-d09aa0182f18d1ac338ab47009b42fdeb67497a8.tar.bz2 yuzu-d09aa0182f18d1ac338ab47009b42fdeb67497a8.tar.lz yuzu-d09aa0182f18d1ac338ab47009b42fdeb67497a8.tar.xz yuzu-d09aa0182f18d1ac338ab47009b42fdeb67497a8.tar.zst yuzu-d09aa0182f18d1ac338ab47009b42fdeb67497a8.zip |
Diffstat (limited to 'src/common')
-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 { template <typename KeyTBase, typename ValueT> class RangeMap { private: - using KeyT = std::conditional_t<std::is_signed_v<KeyTBase>, typename KeyTBase, - std::make_signed_t<KeyTBase>>; + using KeyT = + std::conditional_t<std::is_signed_v<KeyTBase>, KeyTBase, std::make_signed_t<KeyTBase>>; public: explicit RangeMap(ValueT null_value_) : null_value{null_value_} { @@ -56,8 +56,8 @@ public: private: using MapType = std::map<KeyT, ValueT>; - using IteratorType = MapType::iterator; - using ConstIteratorType = MapType::const_iterator; + using IteratorType = typename MapType::iterator; + using ConstIteratorType = typename MapType::const_iterator; size_t ContinousSizeInternal(KeyT address) const { const auto it = GetFirstElemnentBeforeOrOn(address); |