On Wed, Apr 14, 2010 at 4:19 PM, Jason Hsueh <[email protected]> wrote:

>
>
> On Wed, Apr 14, 2010 at 1:15 PM, Andrew Kimpton <[email protected]>wrote:
>
>> Do I have a typo (or some other misunderstanding) or is there no support
>> for iterators with RepeatedPtrFields ? Iterators are only available in
>> RepeatedFields ?
>>
>> google::protobuf::RepeatedPtrField<std::string>&::iterator it =
>> message->locations().begin()
>>
>
> The '&' is extraneous - it's splitting up the type you want, hence the
> compiler is trying to find the type ::iterator.
>

Yep - that was it - thanks !

I'd cut-n-paste the return type from the locations() definition in the
generated header to save typing and ended up with the misplaced '&'

Andrew 8-)

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to