Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladiMihaylenko <vxmihaylenko@gmail.com>2019-04-23 11:44:49 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2019-04-23 13:55:47 +0300
commit88c01d55554273f2035bb93ea116f1c2d1b7e649 (patch)
tree5aa4645d8f5488817952ba83ca72737dcf006e35 /indexer
parent65dca33c34d9951a027127462710a0fbda98ec4b (diff)
[base] Replaced base::Key to base::Value as in fact it's a value
Diffstat (limited to 'indexer')
-rw-r--r--indexer/ftypes_matcher.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indexer/ftypes_matcher.hpp b/indexer/ftypes_matcher.hpp
index f9261f3140..c2adbe18f9 100644
--- a/indexer/ftypes_matcher.hpp
+++ b/indexer/ftypes_matcher.hpp
@@ -287,7 +287,7 @@ public:
using UnderlyingType = std::underlying_type_t<Type>;
- static_assert(base::Key(Type::Count) <= CHAR_BIT * sizeof(unsigned),
+ static_assert(base::Underlying(Type::Count) <= CHAR_BIT * sizeof(unsigned),
"Too many types of hotels");
static char const * GetHotelTypeTag(Type type);
@@ -300,7 +300,7 @@ public:
private:
IsHotelChecker();
- std::array<std::pair<uint32_t, Type>, base::Key(Type::Count)> m_sortedTypes;
+ std::array<std::pair<uint32_t, Type>, base::Underlying(Type::Count)> m_sortedTypes;
};
// WiFi is a type in classificator.txt,
@@ -336,7 +336,7 @@ public:
private:
IsEatChecker();
- std::array<std::pair<uint32_t, Type>, base::Key(Type::Count)> m_sortedTypes;
+ std::array<std::pair<uint32_t, Type>, base::Underlying(Type::Count)> m_sortedTypes;
};
class IsCuisineChecker : public BaseChecker