I assume there is a simple answer to this, but I'm having trouble finding it and my searches for similar questions have come up empty ... Perhaps it being Friday afternoon is also reducing my ability to solve this :)
I want to be able to use C++11 range-based for loops on a repeated field in my message, but I can't seem to get it to compile properly. This is true for mutable and const references.
So, for example:
for (message_item &curr_message : data.mutable_message_item())
does not work, nor can I do so without the mutable, but I would think it should.
Is this because RepeatedField does not support the appropriate operators?