Fix a single weekday grammar callback

This commit is contained in:
Michael Krasnyk
2017-07-31 07:59:49 +02:00
parent 8135f08958
commit c1ad4f6b45
3 changed files with 58 additions and 43 deletions
+3 -3
View File
@@ -218,9 +218,9 @@ struct opening_hours_grammar : qi::grammar<Iterator, Skipper, std::vector<Openin
weekday_sequence = (weekday_range % ',')[ph::bind(&OpeningHours::weekdays, _r1) = _1];
weekday_range
= wday[_a = _1, _b = _1]
>> -(('-' >> wday[_b = _1])
| ('[' >> (nth_entry % ',') >> ']' >> -day_offset))
= (wday[_a = _1, _b = _1]
>> -(('-' >> wday[_b = _1])
| ('[' >> (nth_entry % ',') >> ']' >> -day_offset)))
[_val = ph::construct<OpeningHours::WeekdayRange>(_a, _b)]
;