return types for 'begin' and 'end' functions used in a range-based 'for' statement must be the same ('begin' return type ...