diff options
author | Alex Zolotarev <alex@maps.me> | 2016-08-07 04:06:09 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2016-08-07 04:06:09 +0300 |
commit | 370948b47f5557abd47742d270c5dd77a2873193 (patch) | |
tree | 35212808428447dac19359de3d6d2f9dec3f474c /3party | |
parent | d6877910b56295f4792a3884ee2ceb1eefea26af (diff) |
Closes compilation error #1222
Diffstat (limited to '3party')
-rw-r--r-- | 3party/opening_hours/opening_hours.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/3party/opening_hours/opening_hours.cpp b/3party/opening_hours/opening_hours.cpp index c673d9fc6f..cac81f87d8 100644 --- a/3party/opening_hours/opening_hours.cpp +++ b/3party/opening_hours/opening_hours.cpp @@ -784,21 +784,21 @@ bool OpeningHours::IsTwentyFourHours() const bool OpeningHours::HasWeekdaySelector() const { - return std::any_of(begin(m_rule), end(m_rule), std::mem_fn(&osmoh::RuleSequence::HasWeekdays)); + return std::any_of(m_rule.cbegin(), m_rule.cend(), std::mem_fn(&osmoh::RuleSequence::HasWeekdays)); } bool OpeningHours::HasMonthSelector() const { - return std::any_of(begin(m_rule), end(m_rule), std::mem_fn(&osmoh::RuleSequence::HasMonths)); + return std::any_of(m_rule.cbegin(), m_rule.cend(), std::mem_fn(&osmoh::RuleSequence::HasMonths)); } bool OpeningHours::HasWeekSelector() const { - return std::any_of(begin(m_rule), end(m_rule), std::mem_fn(&osmoh::RuleSequence::HasWeeks)); + return std::any_of(m_rule.cbegin(), m_rule.cend(), std::mem_fn(&osmoh::RuleSequence::HasWeeks)); } bool OpeningHours::HasYearSelector() const { - return std::any_of(begin(m_rule), end(m_rule), std::mem_fn(&osmoh::RuleSequence::HasYears)); + return std::any_of(m_rule.cbegin(), m_rule.cend(), std::mem_fn(&osmoh::RuleSequence::HasYears)); } } // namespace osmoh |