forked from organicmaps/organicmaps
[routing] Fixed the build.
This commit is contained in:
parent
e78e3f6fdc
commit
2d78206ee8
2 changed files with 3 additions and 3 deletions
|
@ -159,7 +159,7 @@ impl::Equals<false, T, C> EqualsBy(T (C::*p)() const)
|
|||
}
|
||||
|
||||
template <typename T>
|
||||
constexpr std::underlying_type_t<T> Key(T value)
|
||||
std::underlying_type_t<T> constexpr Key(T value)
|
||||
{
|
||||
return static_cast<std::underlying_type_t<T>>(value);
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ public:
|
|||
return infoGetter.GetLimitRectForLeaf(countryId);
|
||||
};
|
||||
|
||||
auto const index = my::Key(type);
|
||||
auto const index = base::Key(type);
|
||||
if (!m_routers[index])
|
||||
{
|
||||
m_routers[index] = make_unique<IndexRouter>(type, false /* load altitudes */, *m_cpg,
|
||||
|
@ -95,7 +95,7 @@ private:
|
|||
|
||||
FrozenDataSource m_dataSource;
|
||||
shared_ptr<NumMwmIds> m_numMwmIds = make_shared<NumMwmIds>();
|
||||
array<unique_ptr<IndexRouter>, my::Key(VehicleType::Count)> m_routers{};
|
||||
array<unique_ptr<IndexRouter>, base::Key(VehicleType::Count)> m_routers{};
|
||||
unique_ptr<storage::CountryParentGetter> m_cpg = make_unique<storage::CountryParentGetter>();
|
||||
unique_ptr<storage::CountryInfoGetter> m_cig = storage::CountryInfoReader::CreateCountryInfoReader(GetPlatform());
|
||||
traffic::TrafficCache m_trafficCache;
|
||||
|
|
Loading…
Add table
Reference in a new issue