Hi All,
I have the following IDL code:
message X_t {
optional string A = 1;
optional string B = 2;
optional uint32 C = 3; 
}

message Y_t {
repeated X_t P = 1;
}
I am expecting to have in the generated CPP code:

void Y_t::add_P(X_t elem)    //to append elem to the repeated field P in Y

but instead I see:

X_t Y_t::add_P()      //note no param to pass in the element to be added, 
wrong return type.
{
   P_.Add();    
}

Is this a bug or am I missing something?

Mohit.

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


Reply via email to