From 370948b47f5557abd47742d270c5dd77a2873193 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sat, 6 Aug 2016 18:06:09 -0700 Subject: [PATCH] Closes compilation error #1222 --- 3party/opening_hours/opening_hours.cpp | 8 ++++---- 1 file 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