*language:  C++*
*version: 2.6.1*
 
 
 
I have the following message definition in a proto file which is causing a 
*serialization 
error*:
 
 
message   Request {
 
         repeated          LanguageType              LanguageList = 1;
}
 
 
enum     LanguageType   {
 
              English = 0;
              German = 1;
              Spanish = 2;
}
 
 
*If I make the following change:*
 
 
message   Request {
 
         repeated          LanguageTypeList              LanguageListParam 
= 1;
}
 
 
message   LanguageTypeList  {
 
         optional         LanguageType              LanguageList = 1;
}
 
enum     LanguageType   {
 
              English = 0;
              German = 1;
              Spanish = 2;
}
 
 
*it serializes without error.*
 
 
 
 
can anyone explain what is happening?  does *repeated* *NOT WORK* with* 
enums*?
 
thank you

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to